Find licenses used in a Node.js project
At some point of writing code and installing a various number of packages per npm, I was curious about how to find all the licenses used .
So I searched for an easy way to get a list of all my installed packages, along with the licenses used.
Node License Finder
After a short research I found a nice utility called “Node License Finder”, you can get it with npm:
Install
npm install -g nlf |
Or just check the GitHub repo here.
Usage
Just navigate to your project and enter the following command in a terminal session:
nlf |
Here an example output:
abbrev@1.0.7 [license(s): ISC] | |
├── package.json: ISC | |
└── license files: ISC | |
accepts@1.2.11 [license(s): MIT] | |
├── package.json: MIT | |
└── license files: MIT | |
acorn@1.2.2 [license(s): MIT] | |
└── package.json: MIT |