# voidcosmos/npkill

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/voidcosmos-npkill).**

9,060 stars · 226 forks · TypeScript · mit

## Links

- GitHub: https://github.com/voidcosmos/npkill
- Homepage: https://npkill.js.org
- awesome-repositories: https://awesome-repositories.com/repository/voidcosmos-npkill.md

## Topics

`cli` `command-line` `developer-tools` `hacktoberfest` `javascript` `module` `node` `nodejs` `npm` `tool` `typescript`

## Description

npkill is a command-line filesystem scanner and disk space recovery utility. It is designed to identify and delete large dependency folders, specifically targeting node_modules directories created by the npm package manager, to reclaim storage space across multiple projects.

The tool provides an interactive terminal interface that allows for the discovery and identification of dependency folders along with their total disk size and modification dates. Users can select directories for individual or bulk deletion using keyboard inputs.

The utility includes capabilities for recursive filesystem crawling, search path restriction, and directory search filtering to narrow results and exclude hidden directories. It calculates directory sizes and removes target folders using native filesystem operations.

## Tags

### Development Tools & Productivity

- [Disk Space Management](https://awesome-repositories.com/f/development-tools-productivity/disk-space-management.md) — Specializes in finding and deleting node_modules directories to minimize storage usage in JavaScript development environments. ([source](https://npkill.js.org/community))
- [Local Environment Maintenance](https://awesome-repositories.com/f/development-tools-productivity/local-environment-maintenance.md) — Scans the filesystem for heavy, abandoned dependency folders to clear out old project files.
- [Scan Scope Restrictions](https://awesome-repositories.com/f/development-tools-productivity/configuration-search-paths/scan-scope-restrictions.md) — Limits the filesystem scan by defining starting paths and excluding specific folders or hidden directories. ([source](https://npkill.js.org))
- [Dependency Removers](https://awesome-repositories.com/f/development-tools-productivity/dependency-removers.md) — Identifies and removes unused JavaScript dependency folders to optimize local storage.
- [Search Filtering Tools](https://awesome-repositories.com/f/development-tools-productivity/search-filtering-tools.md) — Allows users to narrow search results by specifying target folder names or ignoring hidden directories. ([source](https://cdn.jsdelivr.net/gh/voidcosmos/npkill@main/README.md))

### Part of an Awesome List

- [Dependency Directory Analyzers](https://awesome-repositories.com/f/awesome-lists/devtools/dependency-directory-analyzers.md) — Identifies and lists the size of dependency folders created by the npm package manager.
- [Developer Experience](https://awesome-repositories.com/f/awesome-lists/devtools/developer-experience.md) — Finds and removes heavy dependency folders.

### Graphics & Multimedia

- [Terminal Interaction](https://awesome-repositories.com/f/graphics-multimedia/immersive-interactive-systems/user-interaction/terminal-interaction.md) — Ships an interactive terminal interface allowing users to select and delete folders via keyboard inputs.

### Operating Systems & Systems Programming

- [Filesystem Deletion Utilities](https://awesome-repositories.com/f/operating-systems-systems-programming/filesystem-deletion-utilities.md) — Provides the ability to permanently remove target dependency directories using native filesystem operations to reclaim space.
- [Recursive Directory Scanners](https://awesome-repositories.com/f/operating-systems-systems-programming/recursive-directory-scanners.md) — Recursively traverses the filesystem to identify heavy dependency folders while filtering out hidden paths.
- [Filesystem Scanners](https://awesome-repositories.com/f/operating-systems-systems-programming/system-administration-maintenance/file-system-management/file-systems/filesystem-scanners.md) — Acts as a terminal-based filesystem scanner to identify directory patterns and calculate their storage use.

### System Administration & Monitoring

- [Package Dependency Cleaners](https://awesome-repositories.com/f/system-administration-monitoring/disk-cleanup-utilities/package-dependency-cleaners.md) — Provides a dedicated CLI to find and delete node_modules directories across multiple projects.
- [Disk Management Tools](https://awesome-repositories.com/f/system-administration-monitoring/disk-management-tools.md) — Provides a command-line tool to identify unnecessary dependency directories and calculate their total disk usage. ([source](https://npkill.js.org))
- [Directory Metadata Analyzers](https://awesome-repositories.com/f/system-administration-monitoring/administrative-operations/folder-management/programmatic-folder-managers/folder-list-retrievers/folder-list-retrievers/directory-metadata-analyzers.md) — Scans directory trees to display size and modification dates for reviewing which folders to delete. ([source](https://cdn.jsdelivr.net/gh/voidcosmos/npkill@main/README.md))
