node-modules-clean

0.1.1 • Public • Published

node-modules-clean

中文文档

Explain

Clear the redundant files in the node_modules folder.
Currently cleared files include license, .npmignore, package-lock.json, yarn.lock, .yarn-integrity, .gitignore files, .md, .txt type files.

Install

$ npm install node-modules-clean -g 

Use

Enter folder, run

$ node-modules-clean

Clear the redundant files in the node_modules folder in the current directory.

Parameter --path or -p, select a folder directory.

$ node-modules-clean --path "path/to"

or

$ node-modules-clean -p "path/to"

The parameters of --ext or -e, add the extension files you need to remove the parameter "|" segmentation.

$ node-modules-clean --ext "*.ts | *.less"

The parameters of --file or -f, add the need to remove the file name, "|" segmentation parameters.

$ node-modules-clean --file "a.js | b.js"

The parameters of --filelist or -i, choose a clear file list.

$ node-modules-clean --filelist "clean.txt"

The list format is as follows

# comments
*.ts        # clear the *.ts file
test.js     # clear the test.js file

Parameter

command effect
--path(-p) Select a folder directory.
--ext(-e) Add the extension files you need to remove the parameter "|" segmentation.
--file(-f) Add the need to remove the file name, "|" segmentation parameters.
--filelist(-i) Cleared list of files.

Readme

Keywords

none

Package Sidebar

Install

npm i node-modules-clean

Weekly Downloads

3

Version

0.1.1

License

MIT

Unpacked Size

16.7 kB

Total Files

9

Last publish

Collaborators

  • duan602728596