@messageflow/clean-cli

CLI for @messageflow/clean

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@messageflow/clean-cli
100.0.36 years ago6 years agoMinified + gzip package size for @messageflow/clean-cli in KB

Readme

@messageflow/clean-cli

CLI for @messageflow/clean




!NPMnodei-badgenodei-url
!Versionversion-badgeversion-url !Downloadsdownloads-badgedownloads-url !MIT Licensemit-license-badgemit-license-url !Code of Conductcoc-badgecoc-url
!Build Statustravis-badgetravis-url !Dependency Statusdaviddm-badgedaviddm-url !NSP Statusnsp-badgensp-url
!codebeat-badgecodebeat-url !codacy-badgecodacy-url
Yet another opinionated CLI to reset your working directory with @messageflow/cleanmessageflow-clean-url.

Table of contents

- Install - Run with npx (recommended) - Or, install globally - Usage
- [With npx (recommended)](#with-npx-recommended)

Pre-requisites

Setup

Install

Run with npx (recommended)

# Run CLi with npx
$ npx -p @messageflow/clean-cli -- clean

Or, install globally

# Install via NPM globally
$ npm install --global @messageflow/clean-cli

Usage

With npx (recommended)

$ npx -p @messageflow/clean-cli -- clean --help

Usage
$ clean <path|glob> ...

Options
  -i, --file    Specify the path to read \`.gitignore\`
  -p, --path    Specify the glob patterns to delete files/ folders.
  -f, --force   Allow deleting the current working directory and outside
  -d, --dry-run List what would be deleted instead of deleting

Examples
  $ clean .
  $ clean -i ./.gitignore
  $ clean -i ./.gitignore -d
  $ clean -p "**/src/**/*.js,**/src/**/*.d.ts,!gulpfile.js"

License

MIT License © Rong Sen Ng