prune-node-modules
v2.2.1
Published
A CLI tool to prune node_modules.
Downloads
10
Readme
prune-node-modules
A CLI tool to prune node_modules.
install
yarn global add prune-node-modules
usage
run prune-node-modules ./node_modules
or prune-node-modules ./node_modules --config prune-node-modules.config.js
or prune-node-modules ./node_modules --config prune-node-modules.config.ts
options
key | description --- | --- --config | config file -h,--help | Print this message. -v,--version | Print the version
config
key | type | description --- | --- | --- blacklist | string[]? | the blacklist files, support glob whitelist | string[]? | the whitelist files, support glob
change logs
// v2
can only support one target
blacklist and whitelist are relative to the target directory
// v1
support multiple targets
blacklist and whitelist are relative to current working directory