neuron-builder
v5.1.3
Published
Wrap commonjs module/1.0 javascript files for [neuron](http://github.com/kaelzhang/neuron)
Readme
neuron-builder

Usage
var builder = require('neuron-builder');
builder(file, options, callback)
.on('warn', function(message){
console.warn(message);
});builder(filename, options, callback)
- filename
Stringthe pathname of the entry file to be parsed from - options
Object- pkg:
Objectmixed package json format of project - cwd:
Stringcurrent working directory - compilers:
Object|Array.<Object> - allow_implicit_dependencies:
Booleanwhether allows implicit dependencies. If true and a dependency is not found inpkg, it will be treated as the latest version.
- pkg:
- callback
function(err, content)
callback will get err, contents and parsed as its arguments, where:
- err
Error - content
Stringthe parsed content
