@@ -2,11 +2,18 @@ The [UNIX command](<http://en.wikipedia.org/wiki/Rm_(Unix)>) `rm -rf` for node.
2
2
3
3
Install with ` npm install rimraf ` .
4
4
5
- ## Major Changes from v3 to v4
5
+ ## Major Changes
6
+
7
+ ### v4 to v5
8
+
9
+ - There is no default export anymore. Import the functions directly
10
+ using, e.g., ` import { rimrafSync } from 'rimraf ` .
11
+
12
+ ### v3 to v4
6
13
7
14
- The function returns a ` Promise ` instead of taking a callback.
8
- - Globbing requires the ` --glob ` option to be set. (Removed in
9
- 4.0 and 4.1, opt-in support added in 4.2.)
15
+ - Globbing requires the ` --glob ` CLI option or ` glob ` option property
16
+ to be set. (Removed in 4.0 and 4.1, opt-in support added in 4.2.)
10
17
- Functions take arrays of paths, as well as a single path.
11
18
- Native implementation used by default when available, except on
12
19
Windows, where this implementation is faster and more reliable.
@@ -73,6 +80,8 @@ Options:
73
80
` fs.rm ` because that implementation does not support abort
74
81
signals.
75
82
83
+ - ` glob ` Boolean flag to treat path as glob pattern, or an object
84
+ specifying [ ` glob ` options] ( https://github.com/isaacs/node-glob ) .
76
85
- ` filter ` Method that returns a boolean indicating whether that
77
86
path should be deleted. With async rimraf methods, this may
78
87
return a Promise that resolves to a boolean. (Since Promises
0 commit comments