bower-license-tracker
v1.2.9
Published
This module will track licenses of bower packages user in the application and list them as json.
Downloads
20
Maintainers
Readme
bower-license-tracker
bower-license-tracker will track all the bower dependencies and their corrosponding licenses. The module will generate the JSON file with all meta information about bower packages and copy corrosponding license files in a directory named "bower_licenses". This new folder will be created under the same project directory.
Features
Updates
| Date | Author | Description | | ----------------- | ----------------- | ----------- | | 2018-03-16 | AmittK | Module capable to find immediate or transitive dependencies. | | 2017-09-19 | AmittK | Capability to generate the CSV files | | 2017-09-09 | AmittK | Module to track bower dependencies with all meta information and license files. |
Installing via Npm
npm install -g bower-license-tracker
Usage
- Install the module using: npm install -g bower-license-tracker
- On command line, execute the command: bower-tracker "Path to bower.json"
- To generate CSV, execute the command: bower-tracker "Path to bower.json" true || false (default value is false )
Api Usage
npm install bower-license-tracker
var licenseChecker = require('bower-license-tracker/src');
var options = {
path: 'C:\\Workspace\\DEMO_PROJECT',
isExcel: true
}
licenseChecker.run(options)
| API | Type | Description | | -----------------|------------| ------------------------------------------------| | path | string | Path to package.json in the project | | isExcel | boolean | For generating CSV file, default value is false |
Example of license JSON so produced by app
Command line help
bower-license-tracker --help
License
MIT