Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rimraf

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rimraf - npm Package Compare versions

Comparing version 5.0.0 to 5.0.1

16

dist/cjs/package.json
{
"name": "rimraf",
"version": "5.0.0",
"version": "5.0.1",
"main": "./dist/cjs/src/index.js",

@@ -82,4 +82,14 @@ "module": "./dist/mjs/index.js",

"dependencies": {
"glob": "^10.0.0"
}
"glob": "^10.2.5"
},
"keywords": [
"rm",
"rm -rf",
"rm -fr",
"remove",
"directory",
"cli",
"rmdir",
"recursive"
]
}

2

dist/cjs/src/bin.d.ts
#!/usr/bin/env node
export declare const help: string;
declare const main: {
(...args: string[]): Promise<1 | 0>;
(...args: string[]): Promise<0 | 1>;
help: string;

@@ -6,0 +6,0 @@ };

/// <reference types="node" />
/// <reference types="node" />
export declare const readdirOrError: (path: string) => Promise<import("fs").Dirent[] | NodeJS.ErrnoException>;
export declare const readdirOrErrorSync: (path: string) => import("fs").Dirent[] | NodeJS.ErrnoException;
export declare const readdirOrError: (path: string) => Promise<NodeJS.ErrnoException | import("fs").Dirent[]>;
export declare const readdirOrErrorSync: (path: string) => NodeJS.ErrnoException | import("fs").Dirent[];
//# sourceMappingURL=readdir-or-error.d.ts.map
{
"version": "4.4.1",
"version": "5.0.0",
"type": "module"
}
{
"name": "rimraf",
"version": "5.0.0",
"version": "5.0.1",
"main": "./dist/cjs/src/index.js",

@@ -82,4 +82,14 @@ "module": "./dist/mjs/index.js",

"dependencies": {
"glob": "^10.0.0"
}
"glob": "^10.2.5"
},
"keywords": [
"rm",
"rm -rf",
"rm -fr",
"remove",
"directory",
"cli",
"rmdir",
"recursive"
]
}

@@ -5,7 +5,14 @@ The [UNIX command](<http://en.wikipedia.org/wiki/Rm_(Unix)>) `rm -rf` for node.

## Major Changes from v3 to v4
## Major Changes
### v4 to v5
- There is no default export anymore. Import the functions directly
using, e.g., `import { rimrafSync } from 'rimraf`.
### v3 to v4
- The function returns a `Promise` instead of taking a callback.
- Globbing requires the `--glob` option to be set. (Removed in
4.0 and 4.1, opt-in support added in 4.2.)
- Globbing requires the `--glob` CLI option or `glob` option property
to be set. (Removed in 4.0 and 4.1, opt-in support added in 4.2.)
- Functions take arrays of paths, as well as a single path.

@@ -77,2 +84,4 @@ - Native implementation used by default when available, except on

- `glob` Boolean flag to treat path as glob pattern, or an object
specifying [`glob` options](https://github.com/isaacs/node-glob).
- `filter` Method that returns a boolean indicating whether that

@@ -79,0 +88,0 @@ path should be deleted. With async rimraf methods, this may

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