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 Sep 27, 2023 via pnpm

rimraf 2.5.4

A deep deletion module for node (like `rm -rf`)
Package summary
Share
0
issues
2
licenses
8
ISC
4
MIT
Package created
8 Feb 2011
Version published
22 Jul 2016
Maintainers
1
Total versions
75
License
ISC

Issues

0
This package has no issues

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
Packages
fs.realpath@1.0.0
glob@7.2.3
inflight@1.0.6
inherits@2.0.4
minimatch@3.1.2
once@1.4.0
rimraf@2.5.4
wrappy@1.0.2

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
Packages
balanced-match@1.0.2
brace-expansion@1.1.11
concat-map@0.0.1
path-is-absolute@1.0.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.

Dependencies

12
Get CSV
Name Version Size License Type Vulnerabilities
balanced-match 1.0.2 2.61 kB MIT prod
brace-expansion 1.1.11 4.14 kB MIT prod
concat-map 0.0.1 2.21 kB MIT prod
fs.realpath 1.0.0 4.33 kB ISC prod
glob 7.2.3 15.08 kB ISC prod
inflight 1.0.6 1.99 kB ISC prod
inherits 2.0.4 1.98 kB ISC prod
minimatch 3.1.2 11.66 kB ISC prod
once 1.4.0 1.93 kB ISC prod
path-is-absolute 1.0.1 1.84 kB MIT prod
rimraf 2.5.4 5 kB ISC prod
wrappy 1.0.2 1.64 kB ISC prod

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.