Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

force-del-cli

1.3.1 • Public • Published

force-del-cli

Force delete files or folders using globs

Package Version Downloads Status Build Status: Linux

If the matching files or folders are managed by git, theyʼll be deleted and marked as deleted in staging area. Otherwise, theyʼll be deleted permanently (not to the trash).

How does it work?

  • Filters the files that should be deleted by using globby
  • Maps the matching paths one-by-one to be included in git rm -rf command
  • Uses rimraf if the matching item isnʼt managed by git
  • These processes run concurrently

Installation

npm install --global force-del-cli

Usage

$ force-del --help

  Usage
    $ force-del [<path|glob> ...]

  Options
    --cwd=<dir>  Current working directory
    --verbose    List deleted files

  Examples
    $ force-del silly-faces.jpg
    $ force-del '*.jpg' '!too-cute.jpg'
    $ force-del foo --cwd=../bar

Related

License

MIT © Lufty Wiranda

Install

npm i force-del-cli

DownloadsWeekly Downloads

6

Version

1.3.1

License

MIT

Unpacked Size

5.58 kB

Total Files

4

Last publish

Collaborators

  • avatar