neuron-builder

Wrap commonjs module/1.0 javascript files for cortex

neuron-builder

var builder = require('neuron-builder');
builder(options)
.on('warn', function(message){
  console.warn(message);
})
.parse(file, callback);
  • options Object

    • pkg: mixed package json format of project
    • targetVersion: target version to build
    • cwd: current working directory
    • allowNotInstalled
  • file Path the parsing file

callback will get err and contents as its arguments, where contents is the wrapped result.