neuron-builder

5.1.3 • Public • Published

neuron-builder NPM version Build Status Dependency Status

Usage

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

builder(filename, options, callback)

  • filename String the pathname of the entry file to be parsed from
  • options Object
    • pkg: Object mixed package json format of project
    • cwd: String current working directory
    • compilers: Object|Array.<Object>
    • allow_implicit_dependencies: Boolean whether allows implicit dependencies. If true and a dependency is not found in pkg, it will be treated as the latest version.
  • callback function(err, content)

callback will get err, contents and parsed as its arguments, where:

  • err Error
  • content String the parsed content

Readme

Keywords

Package Sidebar

Install

npm i neuron-builder

Weekly Downloads

2

Version

5.1.3

License

MIT

Last publish

Collaborators

  • kael