duo-exports
v0.0.1
Published
Duo plugin to export variable
Downloads
5
Readme
duo-exports
Duo plugin to export variable
Install
$ npm install duo-exports
Usage
Using the API:
var Duo = require('duo');
var duoExports = require('duo-exports');
var duo = new Duo(__dirname)
.entry('index.js')
.use(duoExports([
{ test: /index/, query: 'Foo' }
]);
duo.run(function(err, file) {
if (err) {
throw err;
}
console.log(file);
//=> module.exports = Foo;
});