prune-node-modules
TypeScript icon, indicating that this package has built-in type declarations

2.2.1 • Public • Published

prune-node-modules

Dependency Status devDependency Status Build Status: Linux Build Status: Windows npm version Downloads type-coverage

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

Readme

Keywords

none

Package Sidebar

Install

npm i prune-node-modules

Weekly Downloads

8

Version

2.2.1

License

MIT

Unpacked Size

11.1 kB

Total Files

8

Last publish

Collaborators

  • plantain_00