promised-del

1.0.2 • Public • Published

promised-del

Wrapper for del that adds support for promises.

Install

npm install --save promised-del

Usage

Used just like del but returns a promise.

https://github.com/sindresorhus/del

Example:

var del = require('promised-del');

del(['tmp/*.js', '!tmp/unicorn.js'])
	.catch(function (err) {
		// deal with the error.
	})
	.then(function (paths) {
		console.log('Deleted files/folders:\n', paths.join('\n'));			
	});

/promised-del/

    Package Sidebar

    Install

    npm i promised-del

    Weekly Downloads

    8

    Version

    1.0.2

    License

    MIT

    Last publish

    Collaborators

    • ashleydavis