This project searches and reads hierarchically a configuration file in a path provided by params.
To make use of this package in your project, just npm install like this:
$ npm i project-info-scanner
- absolutepath - required string
- configFilename - optional string, default=".project-info.json"
var projectInfoScanner = require('project-info-scanner');
projectInfoScanner.from('/any/path/you/want');
// If you named your configfile unlike the default value
projectInfoScanner.from('/any/path/you/want', 'your-custom-name.json');
There are only two required properties: name and root
- The name property is a string value and always should be informed
- The root property is a boolean and its default value is true (its used to flag the stop when the module searches upwards for a config file)