iandotkelly / nlf

Node License Finder
MIT License
152 stars 41 forks source link

nlf-r 0 does not work #46

Closed MitchK closed 7 years ago

MitchK commented 7 years ago

I only want to print top level licenses, but

nlf -r 0

Does not limit the dependencies. Thanks.

iandotkelly commented 7 years ago

This is because npm changed how it worked and now flattens the dependency structure. I'm looking at changing how nlf determines the 'depth'.

I would say however that the legal basis of only looking at the top level is somewhat suspect anyway. You're bundling all the node modules in your application, and almost the entire purpose of nlf is to uncover the hidden dependencies of dependencies that you pick up.

iandotkelly commented 7 years ago

Fixed with https://github.com/iandotkelly/nlf/releases/tag/2.0.0