pruner-cli
v0.4.0
Published
Prune node_modules files and save disk space
Downloads
5
Readme
pruner-cli
Prune node_modules
files and save disk space.
usage
npm i -g pruner-cli
prune
# or use npx
npx pruner-cli
Full usage see prune -h
:
Prune node_modules files and save disk space
Usage: prune <path>
Options:
--version, -v Show version number [boolean]
--config, -c <filename> config file name [string] [default: ".prune.json"]
--dryrun, -d dry run [boolean] [default: "false"]
--verbose log pruned file info [boolean] [default: "false"]
--help, -h Show help [boolean]
Create a local .prune.json
to customize, character case doesn't matter. Defaults are:
{
"dirs": [
"__tests__",
"test",
"tests",
"powered-test",
"docs",
"doc",
".idea",
".vscode",
"website",
"images",
"assets",
"example",
"examples",
"coverage",
".nyc_output",
".circleci",
".github"
],
"files": [
"Makefile",
"Gulpfile.js",
"Gruntfile.js",
".DS_Store",
".tern-project",
".gitattributes",
".editorconfig",
".eslintrc",
".eslintrc.js",
".eslintrc.json",
".eslintignore",
".stylelintrc",
"stylelint.config.js",
".stylelintrc.json",
".stylelintrc.yaml",
".stylelintrc.yml",
".stylelintrc.js",
".htmllintrc",
"htmllint.js",
".lint",
".npmignore",
".jshintrc",
".flowconfig",
".documentup.json",
".yarn-metadata.json",
".travis.yml",
"appveyor.yml",
".gitlab-ci.yml",
"circle.yml",
".coveralls.yml",
"CHANGES",
"LICENSE.txt",
"LICENSE",
"AUTHORS",
"CONTRIBUTORS",
".yarn-integrity",
".yarnclean",
"_config.yml",
".babelrc",
".yo-rc.json",
"jest.config.js",
"karma.conf.js",
".appveyor.yml",
"tsconfig.json"
],
"exts": [".md", ".markdown", ".ts", ".jst", ".coffee", ".tgz", ".swp"]
}
License
MIT