-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.js
24 lines (22 loc) · 896 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/**
* @description "Fessonia"
* @fileOverview "Fessonia package import and configuration"
* @author "Ryan B. Harvey <ryan.b.harvey@ted.com>"
*/
/**
* Main function interface to the library. Returns object of classes when called.
* @param {Object} opts - an object of configuration options (@see Config)
* @returns {Object} - the library's interface classes: {@linkcode FFmpegCommand}, {@linkcode FFmpegInput}, {@linkcode FFmpegOutput}, {@linkcode FilterNode}, {@linkcode FilterChain}
*/
const getFessonia = (opts = {}) => {
require('./lib/util/config')(opts);
const Fessonia = {
FFmpegCommand: require('./lib/ffmpeg_command'),
FFmpegInput: require('./lib/ffmpeg_input'),
FFmpegOutput: require('./lib/ffmpeg_output'),
FilterNode: require('./lib/filter_node'),
FilterChain: require('./lib/filter_chain')
};
return Fessonia;
}
module.exports = getFessonia;