amio / npm-why

Identifies why a package has been installed. Equivalent to `yarn why` for npm packages.
171 stars 5 forks source link

npm-why through production only #315

Open sgielen opened 2 years ago

sgielen commented 2 years ago

npm list has a --prod flag to list production dependencies only (leave out development dependencies).

Now, I'd like to know why a particular package is in my production dependencies, so I'd like to have a --prod flag to npm-why as well. Is this possible?

amio commented 2 years ago

That's doable, maybe we should add both --prod and --dev

eladchen commented 1 year ago

This is exactly what I need, any idea what needs to change?