Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 1.62 KB

README.md

File metadata and controls

43 lines (28 loc) · 1.62 KB

Project-info

Travis Coveralls github License: GPL v3 Known Vulnerabilities

NPM

This project searches and reads hierarchically a configuration file in a path provided by params.

Getting started

To make use of this package in your project, just npm install like this:

$ npm i project-info-scanner

How it works

Usage example

from(absolutePath [, configFileName])

  • 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');

The .project-info.json file

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)