0.2.0 • Published 10 years ago
neuron-config v0.2.0
neuron-config
Install
$ npm install neuron-config --save
Usage
var nconfig = require('neuron-config');
// pass package json and built_root
nconfig({
pkg: pkg,
built_root: built_root,
cwd: cwd // when cwd is passed, neuron-config will try to read 'cortex-shrinkwrap.json' in cwd
}, function(err, config) {
var output ='neuron.config(' + JSON.stringify(config) + ')';
});
// or already has a shrinkwrap tree
nconfig({
tree: tree
}, function(err, config) {
});
// pass shrinked object
nconfig({
shrinked: shrinked
}, function(err, config) {
});
Licence
MIT