3.0.0 • Published 3 years ago

npm-license-tracker v3.0.0

Weekly downloads
6
License
MIT
Repository
github
Last release
3 years ago

npm-license-tracker

npm.io npm.io

npm-license-tracker will track all the npm dependencies and their corrosponding licenses in the specified package. The module will generate the JSON file with all meta information about npm packages and copy corrosponding license files in a directory named "npm_licenses". This new folder will be created under the same project directory.

#Features

Updates

DateAuthorDescription
2018-03-15AmittKModule capable to find immediate or transitive dependencies.
2017-09-24AmittKModule to track npm dependencies with all meta information and license files.

Installing via Npm

npm install -g npm-license-tracker

Usage

  • Install the module using: npm install -g npm-license-tracker
  • On command line, execute the command: npm-tracker "Path to package.json"
  • To generate CSV, execute the command: npm-tracker "Path to package.json" true || false (default value is false )

Api Usage

npm install npm-license-tracker
var licenseChecker = require('npm-license-tracker/src');
var options = {
  path: 'C:\\Workspace\\DEMO_PROJECT',
  isExcel: true
}
licenseChecker.run(options)
APITypeDescription
pathstringPath to package.json in the project
isExcelbooleanFor generating CSV file, default value is false

Example of license JSON so produced by app

Alt text

Command line help

npm-license-tracker --help

License

MIT