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:
|npm install -g nlf|
Or just check the GitHub repo here.
Just navigate to your project and enter the following command in a terminal session:
Here an example output:
|email@example.com [license(s): ISC]|
|├── package.json: ISC|
|└── license files: ISC|
|firstname.lastname@example.org [license(s): MIT]|
|├── package.json: MIT|
|└── license files: MIT|
|email@example.com [license(s): MIT]|
|└── package.json: MIT|