-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Support listing out npm cache #194
Conversation
This is a good idea. But it should use the |
Also, it should have a (If you don't get to this, I will eventually, no sweat, not a blocker.) |
thanks for looking; updated to use I don't write much nodejs code, so happy to refactor a bit if you have suggestions for improvements. |
@jacobtolar can you add some test coverage? We'd love to land this in our next minor |
Hey @jacobtolar just a heads up that we'll be releasing a |
If you need this listing feature in the CLI now, a workaround can be found here: https://github.com/yilmazdurmaz/npm-cache-list |
@jacobtolar apologize this wasn't able to get pulled into v6. We'd love to see |
The documentation for npm-cache says it can list the contents of the cache folder:
The
list
functionality isn't actually present, but is supported bycacache
.This PR adds a
list
(orls
) subcommand tonpm cache
that outputs the contents of the cache in the following format:If a different output format would be preferable, I'm happy to change this PR.