d-pac.plugins-parser
v1.2.2
Published
Plugin parser module for d-pac platform
Downloads
18
Readme
Plugin parser module for d-pac platform
Options
All options are optional, both in the CLI tool and the node module.
verbose
: default=false
, whether to log verbose output or notdir
: default=process.cwd()
, what directory should be used as a starting pointmanifest
: default="package.json"
, which file contains the dependencies declaration
Command-line tool
Install
$ npm install -g d-pac.plugins-parser
Usage
$ d-pac-plugins <dir> --manifest=<manifest> --verbose
Example
$ d-pac-plugins ../ --manifest=dependencies.json --verbose
Output:
Node module
Install
$ npm install -S d-pac.plugins-parser
Usage
var parser = require('d-pac.plugins-parser');
parser();
Will search in the process.cwd()
or nearest ancestor directory for a package.json
. Once found it will parse its dependencies
and check them one by one for a d-pac
entry (in their respective package.json
) and output any plugin configurations it finds.
See d-pac.plugin specifications for more information
Example
var parser = require('d-pac.plugins-parser');
parser({
verbose : false,
dir : "../",
manifest : "dependencies.json"
});
Output:
License
GPL v3 © d-pac