murdermod
CLI to remove node modules.
Last updated 3 months ago by distracted-globe .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install murdermod -g
SYNC missed versions from official npm registry.

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


Current Tags

  • 2.0.0                                ...           latest (3 months ago)

8 Versions

  • 2.0.0                                ...           3 months ago
  • 1.2.0                                ...           3 months ago
  • 1.1.2                                ...           3 months ago
  • 1.1.1                                ...           3 months ago
  • 1.1.0                                ...           3 months ago
  • 1.0.5                                ...           3 months ago
  • 1.0.4                                ...           3 months ago
  • 1.0.3                                ...           3 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (9)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |