Easily find and delete node_modules folders to reclaim disk space. This extension scans a directory of your choice, lists all found node_modules folders, allows you to sort them by size or last modified date, and delete them with a simple action.
node_modules: Scans a user-defined root folder and depth for node_modules directories.node_modules folder.node_modules folders.node_modules directory in Finder.Before using the "Kill Node Modules" extension, you'll need to configure a couple of preferences. Raycast will prompt you for these when you first run the command if they are not set.
You can access and modify these settings at any time via Raycast preferences:
⌥ + Space by default).⌘ + , (Configure Extension).Root Folder:
node_modules folders. For example, you might set this to your main development projects folder, like ~/Developer, ~/Code, or ~/Sites.Scan Depth:
2 or 3) will result in a faster scan but might miss node_modules in deeply nested project structures.5 or more) will be more comprehensive but may take significantly longer to complete, especially if the root folder contains many subdirectories.

Remove selected node_modules
This major update addresses key performance issues, introduces essential configuration options, and significantly refactors the codebase for better readability and modularity.
scanRoot) and Scan Depth (scanDepth) in extension preferences. This prevents scanning the entire file system and allows for targeted searches, similar to the Git Repos extension.README.md with detailed instructions on the new configuration preferences (rootFolder and scanDepth) and how to set them up.tryCatch utility for more robust and standardized error handling throughout the extension.du command-line utility with the fast-glob library for significantly faster scanning of node_modules directories and calculation of their sizes.useCachedPromise hook for efficient data fetching and caching.getCachedModules, saveModulesToCache methods and associated LocalStorage usage) as this functionality is now more effectively handled by the useCachedPromise hook.