8000 GitHub - kaelzhang/neuron-module-bundler: Wrap commonjs module/1.0 javascript files for http://github.com/kaelzhang/neuron
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

kaelzhang/neuron-module-bundler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

neuron-module-bundler

Usage

var builder = require('neuron-module-bundler');

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
    • allowImplicitDependencies: Boolean=false 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

About

Wrap commonjs module/1.0 javascript files for http://github.com/kaelzhang/neuron

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  
0