Installations
npm install del-cli
Developer Guide
Typescript
No
Module System
ESM
Min. Node Version
>=18
Node Version
22.6.0
NPM Version
10.6.0
Score
91.9
Supply Chain
76.4
Quality
76.1
Maintenance
100
Vulnerability
99.6
License
Releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
sindresorhus
Download Statistics
Total Downloads
47,750,612
Last Day
31,306
Last Week
170,207
Last Month
1,243,757
Last Year
14,518,804
GitHub Statistics
317 Stars
46 Commits
20 Forks
8 Watching
1 Branches
9 Contributors
Sponsor this package
Package Meta Information
Latest Version
6.0.0
Package Id
del-cli@6.0.0
Unpacked Size
4.54 kB
Size
2.25 kB
File Count
4
NPM Version
10.6.0
Node Version
22.6.0
Publised On
07 Oct 2024
Total Downloads
Cumulative downloads
Total Downloads
47,750,612
Last day
-8.3%
31,306
Compared to previous day
Last week
-41.3%
170,207
Compared to previous week
Last month
-16.1%
1,243,757
Compared to previous month
Last year
50.3%
14,518,804
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
del-cli
Delete files and directories
Useful for use in build scripts and automated things.
Note that this does permanent deletion. See trash-cli
for something safer.
Install
1npm install --global del-cli
Usage
$ del --help
Usage
$ del <path|glob> …
Options
--force, -f Allow deleting the current working directory and outside
--dry-run, -d List what would be deleted instead of deleting
--verbose, -v Display the absolute path of files and directories as they are deleted
Examples
$ del unicorn.png rainbow.png
$ del "*.png" "!unicorn.png"
:warning: Windows users: Since
$ del
is already a builtin command on Windows, you need to use$ del-cli
there.
Comparison
Benefits over rimraf
CLI: Supports globbing (even on Windows), safer by default as it doesn't allow deleting parent directories, and has a dry-run mode.
Benefits over rm -rf
: Cross-platform, safer by default as it doesn't allow deleting parent directories, and has a dry-run mode.
Related
- del - API for this package
- trash-cli - Move files and directories to the trash
- make-dir-cli - Make directories and their parents if needed
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
security policy file detected
Details
- Info: security policy file detected: .github/security.md:1
- Info: Found linked content: .github/security.md:1
- Info: Found disclosure, vulnerability, and/or timelines in security policy: .github/security.md:1
- Info: Found text in security policy: .github/security.md:1
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: license:0
- Info: FSF or OSI recognized license: MIT License: license:0
Reason
Found 7/30 approved changesets -- score normalized to 2
Reason
2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/sindresorhus/del-cli/main.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/sindresorhus/del-cli/main.yml/main?enable=pin
- Warn: npmCommand not pinned by hash: .github/workflows/main.yml:22
- Info: 0 out of 2 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 1 npmCommand dependencies pinned
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/main.yml:1
- Info: no jobLevel write permissions found
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'main'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 7 are checked with a SAST tool
Score
4.3
/10
Last Scanned on 2024-12-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More