voidcosmos / voidcosmos/npkill
allow deletion without using TUI
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 9.4k
- Forks
- 254
- PR merge metrics
- No merged PRs in 30d
Description
Problem
It would be nice to be able to use npkill without using the TUI as it is a potential extra step/click/key and a slight(:-P) performance impediment.
Solution
Add a command line argument that skips the UI, runs npkill deletion service, and displays results on command line.
Alternative
The best set of arguments I have found thus far is npx npkill -D -x -y -nu which deletes node_modules, skips hidden stuff, auto-confirms, doesn't check for updates, but still requires an exit of the TUI.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing npkill's command-line argument handling and the deletion service currently used by the TUI. Compare the existing -D, -x, -y, and -nu behavior, then define the non-TUI output and confirmation flow. Done means a command-line mode can delete matching node_modules directories and display results without entering or exiting the TUI.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nodejs, typescript
- Domain
- cli, devtools
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100