How to print all the licenses of the node dependencies

Sometimes you need to know which licenses the tools you use have. Good thing, there is a node package that does just that.

You can call this just using Node.js own npx call machanic:

npx license-checker

Calling it via the --help flag opens up some nice flags you can use. For example printing only the direct licences directly into a json file:

npx license-checker --direct --json > licenses.json

I found this via this blog article.