npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

murdermod

v2.0.0

Published

CLI to remove node modules.

Downloads

13

Readme

MurderMOD

Node module cleaning CLI.

What it does

MurderMOD allows you to specify search paths to looks for node modules and remove them. You can add keywords to ignore such as .git directories and paths to ignore. Your paths and keywords are stored locally so you only need to add them once. You can fire of the kill command to remove all modules found in your path search or kill --snipe to remove a specific module directory. See examples below.

Installation

npm i murdermod -g

Help

murdermod --help

Usage

murdermod <command> [args]

Commands

add

Add search paths, keywords and/or paths to exclude from the node module search.

Command Variations

  • add

Arguments

| Argument | Shorthand | Type | Description | |:------------------- |:--------- |:---- |:----------- | | paths | -p | Array | Adds search paths for murdermod to look for node modules. Multiple paths can be added simultaneously by separating them with spaces. | | ignoreKeywords | -i | Array | Adds keywords for murdermod to ignore when searching through the search paths. Multiple keywords can be added simultaneously by separating them with spaces. | | excludePaths | -e | Array | Adds paths to exclude during node module search, multiple paths cann be added simultaneously by separating them with spaces |

Examples


# Add current directory to search paths (with shorthand)
murdermod add -p .

# Add single search path (no shorthand)
murdermod add --paths C:/Users/username/Projects

# Add 2 paths and 1 ignore keyword (with shorthand)
murdermod add -p ./myTestProject C:/Users/username/Projects -i .git

# Add ignore keyword and exclude path (with shorthand)
murdermod add -i src -e C:/Users/username/someFolder

remove

Remove search paths, keywords and/or paths to exclude from the node module search.

Command Variations

  • remove
  • rm

Arguments

| Argument | Shorthand | Type | Description | |:------------------- |:--------- |:---- |:----------- | | paths | -p | Array | Removes search paths for murdermod to look for node modules. Multiple paths can be added simultaneously by separating them with spaces. | | ignoreKeywords | -i | Array | Removes keywords for murdermod to ignore when searching through the search paths. Multiple keywords can be added simultaneously by separating them with spaces. | | excludePaths | -e | Array | Removes paths to exclude during node module search, multiple paths cann be added simultaneously by separating them with spaces |

Examples


# Remove current directory to search paths
murdermod remove -p .

# Remove all search paths
murdermod rm --paths *

# Remove all paths, keywords and exclude paths
murdermod rm *

# Remove 1 path, 2 keywords and all exclude paths
murdermod rm -p C:/users/username/Projects -i .git src -e *

list

List saved search paths, keywords and/or excluded paths.

Command Variations

  • list
  • li
  • l

Arguments

| Argument | Shorthand | Type | Description | |:------------------- |:--------- |:---- |:----------- | | paths | -p | Array | List saved search paths. | | ignoreKeywords | -i | Array | List saved ignore keywords. | | excludePaths | -e | Array | List saved exclude paths |

Examples


# List all paths, keywords, and excluded paths
murdermod li

# List all paths
murdermod list -p

# List all ignore keywords
murdermod l --ignoreKeywords

# List all paths and ignore keywords
murdermod li -p -i

kill

Removes all or selected node modules.

Command Variations

  • kill
  • k

Arguments

| Argument | Shorthand | Type | Description | |:------------------- |:--------- |:---- |:----------- | | noPrompt | -n | Boolean | Ignore prompts such as confirmation prompts. This is great for automation as it requires no additional user input. | | snipe | -s | Boolean / String | Allows you to select a specific node module directory to kill instead of removing all found modules. You can provide a path after the argument for automation or if no path is provided, You will be asked to select 1 from all found modules. NOTE: If you are using no prompt, using snipe without a path specified will remove the first found directory. | | verbose | -v | Boolean | Display all event logs. |

Examples


# Remove modules with confirmation showing how many were found
murdermod kill

# Remove modules without user prompts
murdermod k -n

# Select 1 module path to remove
murdermod kill --snipe

# Remove 1 specified module path
mudermod k -s C:/Users/username/Projects/MyProject/node_modules

# Display all event information while removing modules
murdermod k --verbose