npm.io
0.0.6 • Published 8 years ago

grunt-license-crawler

Licence
BSD-3-Clause
Version
0.0.6
Deps
1
Size
74 kB
Vulns
0
Weekly
0
Stars
1

grunt-license-crawler

Grunt task for npm-license-crawler. Analyzes license information for multiple node.js modules (package.json files) as part of your software project.

Getting Started

This plugin requires Grunt ~0.4.1

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-license-crawler --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-license-crawler');

The "license-crawler" task

Overview

In your project's Gruntfile, add a section named license-crawler to the data object passed into grunt.initConfig().

grunt.initConfig({
  'license-crawler': {
    your_target: {
      // Target-specific file lists and/or options go here.
    },
  },
})
Options
options.start

Type: Array<String> Default value: [ . ]

Path to the directory the license search should start from. Multiple paths can be specified.

options.exclude

Type: Array<String> Default Value: undefined

Path to a directory to be excluded (and its subdirectories) from the search. Multiple paths can be specified.

options.unknown

Type: Boolean Default value: false

Only generate a list of licenses that can't be determined or have been guessed.

options.dependencies

Type: Boolean Default value: false

Only generate a list of third-party licenses, i.e., only list the dependencies defined in package.json.

options.json

Type: String Default Value: undefined

Export data as JSON to the given file path. Be cautious, the task will overwrite file if exists!

options.csv

Type: String Default Value: undefined

Export data as CSV to the given file path. Be cautious, the task will overwrite file if exists!

options.omitVersion

Type: Boolean Default value: false

Don't display versions in result (e.g. "npm-license-crawler@0.1.5" becomes "npm-license-crawler")

options.onlyDirectDependencies

Type: Boolean Default value: false

Show only direct dependencies licenses, i.e., don't list dependencies of dependencies.

options.relativeLicensePath

Type: Boolean Default value: false

Output the relative file path for license files.

History

Keywords