2.0.0 • Published 4 years ago

murdermod v2.0.0

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

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

ArgumentShorthandTypeDescription
paths-pArrayAdds search paths for murdermod to look for node modules. Multiple paths can be added simultaneously by separating them with spaces.
ignoreKeywords-iArrayAdds keywords for murdermod to ignore when searching through the search paths. Multiple keywords can be added simultaneously by separating them with spaces.
excludePaths-eArrayAdds 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

ArgumentShorthandTypeDescription
paths-pArrayRemoves search paths for murdermod to look for node modules. Multiple paths can be added simultaneously by separating them with spaces.
ignoreKeywords-iArrayRemoves keywords for murdermod to ignore when searching through the search paths. Multiple keywords can be added simultaneously by separating them with spaces.
excludePaths-eArrayRemoves 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

ArgumentShorthandTypeDescription
paths-pArrayList saved search paths.
ignoreKeywords-iArrayList saved ignore keywords.
excludePaths-eArrayList 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

ArgumentShorthandTypeDescription
noPrompt-nBooleanIgnore prompts such as confirmation prompts. This is great for automation as it requires no additional user input.
snipe-sBoolean / StringAllows 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-vBooleanDisplay 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

2.0.0

4 years ago

1.2.0

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.1.2

4 years ago

1.0.3

4 years ago