0.2.0 • Published 10 years ago

neuron-config v0.2.0

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

neuron-config NPM version Build Status Dependency Status

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

0.2.0

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago