clean-dir

Command line util to safely clean a directory

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
clean-dir
1.0.37 years ago7 years agoMinified + gzip package size for clean-dir in KB

Readme

cleandir
!NPM versionnpm-imagenpm-url !Build Statustravis-imagetravis-url
Command line util to safely clean a directory

About

This small command line tool uses trashtrash-url to safely clean the current working directory or the directory specified.

Install

$ npm install -g clean-dir

Usage

Command-line

Cleans up the current working directory:
$ cleandir

Cleans a given directory:
$ cleandir ~/path-to-clean

Displays the help message:
$ cleandir --help

Programmatic API

var cleandir = require('clean-dir');

cleandir('~/path-to-clean', function (err) {});

License

MIT © Ruy Adorno