1.2.2 • Published 10 years ago
d-pac.plugins-parser v1.2.2
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-parserUsage
$ d-pac-plugins <dir> --manifest=<manifest> --verboseExample
$ d-pac-plugins ../ --manifest=dependencies.json --verboseOutput:
Node module
Install
$ npm install -S d-pac.plugins-parserUsage
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