Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 4, 2024 via pnpm
Package summary
Share
0
issues
2
licenses
33
MIT
11
ISC
Package created
21 Jun 2014
Version published
30 Aug 2023
Maintainers
1
Total deps
44
Direct deps
8
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
33 Packages, Including:
@nodelib/fs.scandir@2.1.5
@nodelib/fs.stat@2.0.5
@nodelib/fs.walk@1.2.8
aggregate-error@4.0.1
balanced-match@1.0.2
brace-expansion@1.1.11
braces@3.0.2
clean-stack@4.2.0
concat-map@0.0.1
del@7.1.0
dir-glob@3.0.1
escape-string-regexp@5.0.0
fast-glob@3.3.2
fill-range@7.0.1
globby@13.2.2
ignore@5.3.1
indent-string@5.0.0
is-extglob@2.1.1
is-glob@4.0.3
is-number@7.0.0
is-path-cwd@3.0.0
is-path-inside@4.0.0
merge2@1.4.1
micromatch@4.0.5
p-map@5.5.0
path-is-absolute@1.0.1
path-type@4.0.0
picomatch@2.3.1
queue-microtask@1.2.3
reusify@1.0.4
run-parallel@1.2.0
slash@4.0.0
to-regex-range@5.0.1

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
11 Packages, Including:
fastq@1.17.1
fs.realpath@1.0.0
glob-parent@5.1.2
glob@7.2.3
graceful-fs@4.2.11
inflight@1.0.6
inherits@2.0.4
minimatch@3.1.2
once@1.4.0
rimraf@3.0.2
wrappy@1.0.2
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

8
All Dependencies CSV
β“˜ This is a list of del 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
globby13.2.26.82 kBMIT
prod
graceful-fs4.2.119.57 kBISC
prod
is-glob4.0.34.16 kBMIT
prod
is-path-cwd3.0.01.71 kBMIT
prod
is-path-inside4.0.01.95 kBMIT
prod
p-map5.5.05.27 kBMIT
prod
rimraf3.0.26.33 kBISC
prod
slash4.0.01.96 kBMIT
prod

Visualizations

Frequently Asked Questions

What does del do?

Del is a powerful npm package that provides a way to delete files and directories using globbing patterns. Similar to the Rimraf package, Del offers a Promise API and support for multiple files and globbing. It also carries an essential safety feature that protects your current working directory and directories above it from accidental deletion.

How do you use del?

To get started with Del, install the package by running npm install del in your project directory.

Del can be used to delete specific files, exclude certain files, or delete directories. Here's a sample snippet:

import {deleteAsync} from 'del';
const deletedFilePaths = await deleteAsync(['temp/*.js', '!temp/unicorn.js']);
console.log('Deleted files:\n', deletedFilePaths.join('\n'));

The code above deletes all .js files in the temp directory, but it won't delete the unicorn.js. The list of deleted files is then logged to the console.

Package also provides synchronous version of the delete method:

import {deleteSync} from 'del';
const deletedDirectoryPaths = deleteSync(['public/assets/**', '!public/assets', '!public/assets/goat.png']);

The code above deletes all subdirectories and files within public/assets directory but leaves intact public/assets and goat.png file. Resulting array of deleted paths is then assigned to deletedDirectoryPaths.

Be aware that glob pattern ** matches all children and the parent. Therefore, if you wish to exclude any parent directories from deletion, you'll have to explicitly ignore them.

Where are the del docs?

Del's documentation is available in the readme content on the project's GitHub page. The readme provides a comprehensive guide on how to use del, the API methods available, and examples for different use cases. You can check the options parameter that can be passed to the deleteAsync and deleteSync methods for more control over file deletion operations. For any glob related documentation, refer to the supported glob patterns.