0.1.1 • Published 8 years ago

license-collector v0.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

license-collector

NPM version NPM downloads Build Status Coverage Status Dependency Status

a license collector for npm and bower dependencies

How to Install

$ npm install license-collector -g

Getting Started

You can use the license collector in the cli or in code.

CLI

Usage: license-collector <directory ...> [options]

Options:

  -h, --help              output usage information
  -V, --version           output the version number
  -o, --output [value]    Outputfile, use .json or .yml.
  -n, --no_npm            Ignore npm packages
  -b, --no_bower          Ignore bower packages
  -p, --patterns [value]  comma separated list of possibible license files. fg. "*license*,*readme*"

Javascript

var licenseCollector = require('license-collector').licenseCollector
licenseCollector(__dirname, {
    ignoreNpm: true,
    output: 'licenses.json',
    verbose: true,
    licensePatterns: ['*license*', '*readme*']
}).then(function (result) {
    done()
}, console.log)

Gulp

var licenseCollector = require('license-collector').licenseCollector
gulp.task('licenses', function (done) {
    licenseCollector(__dirname, {
        ignoreNpm: true,
        output: 'licenses.json',
        verbose: true,
        licensePatterns: ['*license*', '*readme*']
    }).then(function (result) {
        done()
    }, console.log)
})

How to Test

Run one, or a combination of the following commands to lint and test your code:

$ npm run lint          # Lint the source code with ESLint
$ npm test              # Run unit tests with Mocha
$ npm run test:watch    # Run unit tests with Mocha, and watch files for changes
$ npm run test:cover    # Run unit tests with code coverage by Istanbul

License

MIT © 2016 niels wijers

0.1.1

8 years ago

0.1.0

8 years ago

0.0.11

8 years ago

0.0.10

8 years ago

0.0.0

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago