forked from millermedeiros/nodefy
/
index.js
35 lines (28 loc) · 827 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
25
26
27
28
29
30
31
32
33
34
35
var _parser = require('./src/parser');
var _converter = require('./src/converter');
var _config = require('./src/config');
/**
* Convert AMD-style JavaScript string into node.js compatible module
* @param String raw
* @return String
*/
exports.parse = _parser.parse;
/**
* Read file content and output into destination path.
* @param String inputPath
* @param String [outputPath]
* @param Function callback(err, result)
*/
exports.convert = _converter.convert;
/**
* Read glob content and output files into output folder
* @param Glob inputGlob Glob that matches files that should be converted
* @param String [outputFolder]
* @param Function callback(err, results)
*/
exports.batchConvert = _converter.batchConvert;
/**
* Configure nodefy
* @param Object options
*/
exports.config = _config.configure;