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 1.1.1 to 1.2.0

license

9

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

@@ -47,3 +47,3 @@ "license": "MIT",

"each-async": "^1.0.0",
"globby": "^1.0.0",
"globby": "^2.0.0",
"is-path-cwd": "^1.0.0",

@@ -55,5 +55,6 @@ "is-path-in-cwd": "^1.0.0",

"devDependencies": {
"fs-extra": "^0.12.0",
"mocha": "*"
"fs-extra": "^0.18.3",
"mocha": "*",
"path-exists": "^1.0.0"
}
}

@@ -21,4 +21,4 @@ # del [![Build Status](https://travis-ci.org/sindresorhus/del.svg?branch=master)](https://travis-ci.org/sindresorhus/del)

del(['tmp/*.js', '!tmp/unicorn.js'], function (err, deletedFiles) {
console.log('Files deleted:', deletedFiles.join(', '));
del(['tmp/*.js', '!tmp/unicorn.js'], function (err, paths) {
console.log('Deleted files/folders:\n', paths.join('\n'));
});

@@ -33,3 +33,3 @@ ```

The async method gets an array of deleted files as the second argument in the callback, while the sync method returns the array.
The async method gets an array of deleted paths as the second argument in the callback, while the sync method returns the array.

@@ -36,0 +36,0 @@ #### patterns

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