Coder Social home page Coder Social logo

node-modules-clean's Introduction

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.

node-modules-clean's People

Contributors

duan602728596 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

node-modules-clean's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.