mwittig / npm-license-crawler

Analyzes license information for multiple node.js modules (package.json files) as part of your software project.
BSD 3-Clause "New" or "Revised" License
233 stars 45 forks source link

Only list direct dependencies #10

Closed rraziel closed 6 years ago

rraziel commented 7 years ago

Hello,

Is there any way to only list direct dependencies? I tried --dependencies but that only removes my own project from the list. The idea being that only the dependencies in my own package.json are listed and not those dependencies' own dependencies. In a similar fashion, is it possible to only list dependencies without dev dependencies?

If none of those features are currently available, would a pull request help?

Thanks.

rraziel commented 7 years ago

From a quick look at license-checker, it seems like it already supports those so it's only a matter of passing the flags.

mwittig commented 7 years ago

Thanks for your report.

From a quick look at license-checker, it seems like it already supports those so it's only a matter of passing the flags.

Which option do you think it is with license-checker to only list direct dependencies? As far as I can see, it is not supported by the license-checker command line tool. Anyhow, I'll regard this as a feature request. I'll add a separate ticket for the other requests.

mwittig commented 7 years ago

If none of those features are currently available, would a pull request help?

Contributions are welcome and appreciated, highly!

Cederman commented 6 years ago

+1

mwittig commented 6 years ago

released npm-license-crawler@0.1.6