Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

del

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

del - npm Package Compare versions

Comparing version 2.0.2 to 2.1.0

6

package.json
{
"name": "del",
"version": "2.0.2",
"version": "2.1.0",
"description": "Delete files/folders using globs",

@@ -51,7 +51,7 @@ "license": "MIT",

"pify": "^2.0.0",
"pinkie-promise": "^1.0.0",
"pinkie-promise": "^2.0.0",
"rimraf": "^2.2.8"
},
"devDependencies": {
"fs-extra": "^0.24.0",
"fs-extra": "^0.26.2",
"mocha": "*",

@@ -58,0 +58,0 @@ "path-exists": "^2.0.0",

# del [![Build Status](https://travis-ci.org/sindresorhus/del.svg?branch=master)](https://travis-ci.org/sindresorhus/del)
> Delete files/folders using [globs](https://github.com/isaacs/minimatch#usage)
> Delete files and folders using [globs](https://github.com/isaacs/minimatch#usage)

@@ -18,6 +18,6 @@ Pretty much [rimraf](https://github.com/isaacs/rimraf) with a Promise API and support for multiple files and globbing. It also protects you against deleting the current working directory and above.

```js
var del = require('del');
const del = require('del');
del(['tmp/*.js', '!tmp/unicorn.js']).then(function (paths) {
console.log('Deleted files/folders:\n', paths.join('\n'));
del(['tmp/*.js', '!tmp/unicorn.js']).then(paths => {
console.log('Deleted files and folders:\n', paths.join('\n'));
});

@@ -50,3 +50,3 @@ ```

Returns a promise that resolves to an array of deleted paths.
Returns a promise for an array of deleted paths.

@@ -82,3 +82,3 @@ ### del.sync(patterns, [options])

See [trash](https://github.com/sindresorhus/trash).
See [trash-cli](https://github.com/sindresorhus/trash-cli).

@@ -85,0 +85,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc