Skip to content

Add support for managing node_modules/.ignored folders separately in npkill #220

@sauryagur

Description

@sauryagur

Is your feature request related to a problem? Please describe.
When using pnpm after having previously installed packages with npm, the old node_modules directory often gets moved to .ignored. Currently, npkill doesn’t display .ignored folders in a clear or separate way, which makes it harder to identify and manage them.

Describe the solution you'd like
I’d like npkill to show .ignored directories grouped under a collapsible tree (or similar structure) so they’re visually distinct from regular node_modules. Additionally, I’d like an option to delete .ignored separately, (.ignored will be automatically removed if the parent node_modules folder is deleted).

Describe alternatives you've considered
Manually navigating to each .ignored directory and deleting it, which is time-consuming and less convenient.

Additional context
This would be especially useful when switching between package managers (npm → pnpm) to clean up leftover directories without confusion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions