d-pac.plugins-parser

1.2.2 • Public • Published

NPM version Build Status Dependency Status

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 not
  • dir : default=process.cwd(), what directory should be used as a starting point
  • manifest : 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

Readme

Keywords

Package Sidebar

Install

npm i d-pac.plugins-parser

Homepage

www.d-pac.be

Weekly Downloads

0

Version

1.2.2

License

GPL v3

Last publish

Collaborators

  • creynders