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
view raw npm.js hosted with ❤ by GitHub

Or just check the GitHub repo here.


Just navigate to your project and enter the following command in a terminal session:

view raw nlf.js hosted with ❤ by GitHub

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
view raw licences hosted with ❤ by GitHub

You may also like...