• Stars
    star
    225
  • Rank 177,187 (Top 4 %)
  • Language
    JavaScript
  • License
    BSD 3-Clause "New...
  • Created about 10 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

NPM License Crawler

npm version Greenkeeper badge

NPM License Crawler is a wrapper around license-checker to analyze several node packages (package.json files) as part of your software project. This way, it is possible to create a list of third party licenses for your software project in one go. File paths containing ".git" or "node_modules" are ignored at the stage where 'package.json' files are matched to provide the entry points to calling license-checker.

Contributions

If you like npm-license-crawler, please consider ★ starring the project on github. Contributions to the project are welcome. You can simply fork the project and create a pull request with your contribution to start with.

Installation

Use global installation to be able to run npm-license-crawler from the command line.

npm i npm-license-crawler -g

Options

  • --start directory-path: path to the directory the license search should start from. If omitted the current working directory is assumed.

  • --exclude directory-path: path to a directory to be excluded (and its subdirectories) from the search.

  • --unknown: show only licenses that can't be determined or have been guessed.

  • --dependencies: show only third-party licenses, i.e., only list the dependencies defined in package.json.

  • --production: show only production dependencies

  • --development: show only development dependencies

  • --onlyDirectDependencies: show only direct dependencies licenses, i.e., don't list dependencies of dependencies.

  • --omitVersion: omit version numbers in result (e.g. "[email protected]" becomes "npm-license-crawler")

  • --noColor: (or --no-color) don't show colors in the console output

  • --relativeLicensePath: output the relative file path for license files.

  • --json /path/to/save.json: export data as JSON to the given file. The path will be created if it does not exist.

  • --csv /path/to/save.csv: export the data as comma-separated values to the given file. The path will be created if it does not exist.

Example

Called from the npm-license-crawler installation directory. If called in another directory make sure the given exclude path exists (or omit the --exclude option and argument).

npm-license-crawler  --exclude ./lib --dependencies --csv licenses.csv

Using npm-license-crawler API

See the following example.

var crawler = require('npm-license-crawler'),
    options = {
        start: ['../..'],
        exclude: ['.'],
        json: 'licenses.json',
        unknown: true
    };

crawler.dumpLicenses(options,
    function(error, res){
        if (error) {
            console.error("Error:", error);
        }
        else {
            console.dir(res);
        }
    }
);

History

See Release History.

Build Status

Build Status

More Repositories

1

node-milight-promise

A node module to control Milight LED bulbs and OEM equivalents such as Rocket LED, Limitless LED Applamp, Easybulb, s`luce, iLight, iBulb, and Kreuzer
JavaScript
110
star
2

node-fronius-solar

Access PV live logs using the Fronius Solar API
JavaScript
33
star
3

edimax-smartplug

Unofficial Edimax Smartplug Libary. Control SP-1101W and SP-2101W from Node.js.
JavaScript
27
star
4

etherport-client

Client-side virtual serial port for Etherport. Used to implement firmata-compatible boards and relays.
JavaScript
22
star
5

pimatic-amazing-dash-button

Pimatic plugin for Amazon's dash-buttons
CoffeeScript
14
star
6

pimatic-johnny-five

Pimatic Plugin for Johnny Five, a Robotics and IoT programming framework - http://johnny-five.io
CoffeeScript
10
star
7

pimatic-edimax

Pimatic Plugin for Edimax WiFi Smart Plugs
CoffeeScript
7
star
8

pimatic-milight-reloaded

A pimatic plugin to control Milight LED lights and its OEM equivalents such as Rocket LED, Limitless LED Applamp, Easybulb, s`luce, iLight, iBulb, and Kreuzer
CoffeeScript
7
star
9

pimatic-denon-avr

Pimatic plugin to monitor & control a Denon or Marantz AV Receiver
CoffeeScript
6
star
10

pimatic-yamaha-avr

Pimatic plugin to monitor & control a Yamaha AV Receiver
CoffeeScript
5
star
11

pimatic-filter

Pimatic Plugin which provides various filtering functions for sensor data
CoffeeScript
4
star
12

pimatic-metar-weather

Plugin to obtain weather data from METAR reports
CoffeeScript
4
star
13

pimatic-plugin-commons

Common helper functions for pimatic plugins
JavaScript
4
star
14

node-red-contrib-pimatic

Node-Red Nodes for Pimatic
JavaScript
4
star
15

pimatic-energy-monitor

Pimatic plugin which accumulates the electric energy consumption of PowerSwitch devices and and power meters
CoffeeScript
3
star
16

winston-lumberjack

A logstash transport for winston based on node-lumberjack-protocol, a lumberjack protocol implementation for Node.js
JavaScript
3
star
17

pimatic-fronius-solar

Pimatic Plugin to access PV live logs using the Fronius Solar API
CoffeeScript
3
star
18

pimatic-probe

A pimatic plugin to probe HTTP(S) and TCP services
CoffeeScript
2
star
19

pimatic-knmi-weather

Pimatic plugin for KNMI weather data
CoffeeScript
2
star
20

pimatic-fritzing-sketches

A collection of fritzing sketches contributed by the pimatic community
2
star
21

pimatic-dwd-weather

Pimatic plugin for DWD weather data
CoffeeScript
2
star
22

mongo-change-stream-demo

MongoDB Change Stream Demo
Go
1
star
23

pimatic-samsung-tv

A pimatic plugin to control Samsung TVs
CoffeeScript
1
star
24

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.
JavaScript
1
star
25

pimatic-unipi-evok

Pimatic Plugin for UniPi boards and Neuron PLCs - http://www.unipi.technology
CoffeeScript
1
star
26

bc-links

Blockchain Links
1
star
27

pimatic-amazon-echo

Pimatic Plugin for Amazon Echo (Alexa) integration
1
star
28

node-websolarlog

Access PV live logs from WebSolarLog in Node.
JavaScript
1
star
29

pimatic-nuki

Pimatic plugin for Nuki Smart Locks
CoffeeScript
1
star
30

pimatic-unieq-box

Pimatic plugin for the UNIEQ-Box smart meter
CoffeeScript
1
star
31

hashtable-js

A pure Javascript replacement for node-hashtable - https://github.com/chad3814/node-hashtable
JavaScript
1
star
32

gulp-license-crawler

Gulp plugin for npm-license-crawler. Analyzes license information for multiple node.js modules (package.json files) as part of your software project.
JavaScript
1
star