1.0.0 • Published 10 years ago
read-neuron-json v1.0.0
read-neuron-json
The utility to read neuron.json
Install
$ npm install read-neuron-json --saveUsage
var read = require('read-neuron-json');
var cwd = '/path/to/package';
read(cwd, function (err, json){
// ...
});- cwd
paththe current working directory - err
Error - json
Objectsee below
json
Contains the fields below at least:
- name
Stringthe package name of the package - main
path=the filename(relative tocwd) of the main entry, if there is no main entry, there will be nomainkey injson - entries
Array.<path>if there's no entries, it will be an empty array.
License
MIT
1.0.0
10 years ago