del-cli
Delete files and directories - Cross-platform
Last updated 10 days ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install del-cli 
SYNC missed versions from official npm registry.

del-cli Build Status

Delete files and directories

Useful for use in build scripts and automated things.

Note that this does permanent deletion. See trash-cli for something safer.

Install

$ npm install --global del-cli

Usage

$ del --help

  Usage
    $ del <path|glob> …

  Options
    --force, -f    Allow deleting the current working directory and outside
    --dry-run, -d  List what would be deleted instead of deleting

  Examples
    $ del unicorn.png rainbow.png
    $ del '*.png' '!unicorn.png'

Since $ del is already a builtin command on Windows, you need to use $ del-cli there.

Related

  • del - API for this module
  • trash-cli - Move files and directories to the trash
  • make-dir-cli - Make directories and their parents if needed

Current Tags

  • 3.0.0                                ...           latest (10 days ago)

9 Versions

  • 3.0.0                                ...           10 days ago
  • 2.0.0                                ...           4 months ago
  • 1.1.0                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
  • 0.2.1                                ...           3 years ago
  • 0.2.0                                ...           4 years ago
  • 0.1.2                                ...           4 years ago
  • 0.1.1                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 3
This Week 68
This Month 447
Last Day 30
Last Week 262
Last Month 710
Dependencies (2)
Dev Dependencies (4)
Dependents (122)

Copyright 2014 - 2016 © taobao.org |