0.0.1 • Published 10 years ago

duo-exports v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

duo-exports Build Status

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;
});