npm

npm’s 2019 JavaScript ecosystem survey analysis is now available!Get your copy here »

clean-dir

1.0.3 • Public • Published

cleandir

NPM version Build Status

Command line util to safely clean a directory

About

This small command line tool uses trash 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

install

npm i clean-dir

Downloadsweekly downloads

848

version

1.0.3

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability