2.0.1 • Published 8 years ago

neuron-json v2.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

Build Status

neuron-json

The utility to read neuron.json

Install

$ npm install neuron-json --save

Usage

var nj = require('neuron-json');
var cwd = '/path/to/package';
nj.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.

process.env.NEURON_NO_TEST_ENTRY

If process.env.NEURON_NO_TEST_ENTRY is specified, then neuron-json will not include test entries automatically.

License

MIT

2.0.1

8 years ago

2.0.0

8 years ago

1.5.0

8 years ago

1.4.0

8 years ago

1.3.0

8 years ago

1.2.0

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago