Skip to content

node-prune is a small tool to prune unnecessary files from node_modules, such as markdown, typescript source files, and so on.

License

Notifications You must be signed in to change notification settings

serverless-plus/node-prune

Repository files navigation

@slsplus/node-prune

npm NPM downloads Build Status semantic-release

Node prune tool, prune unnecessary files from ./node_modules, such as markdown, typescript source files, and so on. Inspired by golang version tj/node-prune.

Installation

$ npm i @slsplus/node-prune -g

Usage

$ np -h
Usage: np [options]

Prune command for project

Options:
  -v, --version           output the current version
  -e --exclude <exclude>  Glob of files that should not be pruned. Multiple exclude use , to separate.
  -i --include <include>  Globs of files that should always be pruned in addition to the defaults. Multiple include use , to separate.
  -h, --help              display help for command

Example call:
  $ np --help

Start to prune:

$ np

License

MIT License

Copyright (c) 2020 Serverless Plus

About

node-prune is a small tool to prune unnecessary files from node_modules, such as markdown, typescript source files, and so on.

Resources

License

Stars

Watchers

Forks

Packages

No packages published