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 Mar 16, 2024 via pnpm

rimraf 4.4.0

A deep deletion module for node (like `rm -rf`)
Package summary
Share
2
issues
1
high severity
license
1
1
low severity
license
1
3
licenses
7
ISC
2
MIT
1
BlueOak-1.0.0
Package created
8 Feb 2011
Version published
8 Mar 2023
Maintainers
1
Total deps
10
Direct deps
1
License
ISC

Issues

2

1 high severity issue

high
Recommendation: Read and validate the license terms
via: glob@9.3.5
Collapse
Expand

1 low severity issue

low
Recommendation: Read and validate the license terms
via: glob@9.3.5
Collapse
Expand

Licenses

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
7 Packages, Including:
fs.realpath@1.0.0
glob@9.3.5
lru-cache@10.2.0
minimatch@8.0.4
minipass@4.2.8
minipass@7.0.4
rimraf@4.4.0

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
2 Packages, Including:
balanced-match@1.0.2
brace-expansion@2.0.1

Blue Oak Model License 1.0.0

Uncategorized
Not OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
Cannot
Must
1 Packages, Including:
path-scurry@1.10.1
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

1
All Dependencies CSV
β“˜ This is a list of rimraf 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
glob9.3.558.21 kBISC
prod
1
1

Visualizations

Frequently Asked Questions

What does rimraf do?

Rimraf is a deep deletion module for node, similar to the UNIX command 'rm -rf'. It's designed to effectively and efficiently remove files and directories, overcoming challenges presented by different operating systems like Windows and UNIX-based platforms. Offering flexibility, the rimraf module can execute operations via a native implementation (default) or Windows implementation.

How do you use rimraf?

To use rimraf, you first need to install it with npm using the command npm install rimraf. Following this, you can import the required functions from the rimraf package using either import or require().

Here are some examples of how to use rimraf:

  1. Importing the functions:
// Using import
import { rimraf, rimrafSync, native, nativeSync } from 'rimraf'

// Using require()
const { rimraf, rimrafSync, native, nativeSync } = require('rimraf')
  1. Using the rimraf function to delete a path or an array of paths:
rimraf('/path/to/delete', options).then(success => console.log(success));
  1. Using the synchronous version of rimraf:
const success = rimrafSync('/path/to/delete', options);
console.log(success);

Options can be passed to define the behavior of the rimraf function, such as preserveRoot, tmp, maxRetries, backoff, and maxBackoff.

Where are the rimraf docs?

The documentation for rimraf can be found in its GitHub repository, at git://github.com/isaacs/rimraf.git. The readme file included in the repository provides a detailed explanation of the module's functionality, its API, configuration options, and various implementations. It also includes the major changes in the different versions of the module. The repository is the go-to source for developers seeking to understand and use rimraf effectively.