1.0.0 • Published 9 years ago

read-neuron-json v1.0.0

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

NPM version npm module downloads per month Build Status Dependency Status

read-neuron-json

The utility to read neuron.json

Install

$ npm install read-neuron-json --save

Usage

var read = require('read-neuron-json');
var cwd = '/path/to/package';
read(cwd, function (err, json){
  // ...
});
  • cwd path the current working directory
  • err Error
  • json Object see below

json

Contains the fields below at least:

  • name String the package name of the package
  • main path= the filename(relative to cwd) of the main entry, if there is no main entry, there will be no main key in json
  • entries Array.<path> if there's no entries, it will be an empty array.

License

MIT