rimraf 4.0.4 → 4.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  The [UNIX command](<http://en.wikipedia.org/wiki/Rm_(Unix)>) `rm -rf` for node.
2
2
 
3
- Install with `npm install rimraf`, or just drop rimraf.js somewhere.
3
+ Install with `npm install rimraf`.
4
4
 
5
5
  ## Major Changes from v3 to v4
6
6
 
@@ -12,18 +12,18 @@ Install with `npm install rimraf`, or just drop rimraf.js somewhere.
12
12
  - New implementation on Windows, falling back to "move then
13
13
  remove" strategy when exponential backoff for `EBUSY` fails to
14
14
  resolve the situation.
15
- - Simplified implementation on Posix, since the Windows affordances are not
16
- necessary there.
15
+ - Simplified implementation on Posix, since the Windows
16
+ affordances are not necessary there.
17
17
 
18
18
  ## API
19
19
 
20
20
  Hybrid module, load either with `import` or `require()`.
21
21
 
22
22
  ```js
23
- // default export is the main rimraf function
24
- import rimraf from 'rimraf'
23
+ // default export is the main rimraf function, or use named imports
24
+ import { rimraf } from 'rimraf'
25
25
  // or
26
- const rimraf = require('rimraf').default
26
+ const { rimraf } = require('rimraf')
27
27
 
28
28
  // other strategies exported as well
29
29
  import { rimraf, rimrafSync, native, nativeSync } from 'rimraf'
@@ -136,6 +136,8 @@ Synchronous form of `rimraf.moveRemove()`
136
136
  ### Command Line Interface
137
137
 
138
138
  ```
139
+ rimraf version 4.0.4
140
+
139
141
  Usage: rimraf <path> [<path> ...]
140
142
  Deletes all files and folders at "path", recursively.
141
143
 
@@ -147,7 +149,7 @@ Options:
147
149
 
148
150
  --impl=<type> Specify the implementationt to use.
149
151
  rimraf: choose the best option
150
- native: the C++ implementation in Node.js
152
+ native: the built-in implementation in Node.js
151
153
  manual: the platform-specific JS implementation
152
154
  posix: the Posix JS implementation
153
155
  windows: the Windows JS implementation
@@ -1,11 +1,13 @@
1
1
  {
2
2
  "name": "rimraf",
3
- "version": "4.0.4",
3
+ "version": "4.0.6",
4
4
  "main": "./dist/cjs/src/index.js",
5
5
  "module": "./dist/mjs/src/index.js",
6
6
  "bin": "./dist/cjs/src/bin.js",
7
+ "types": "./dist/cjs/src/index.d.ts",
7
8
  "exports": {
8
9
  ".": {
10
+ "types": "./dist/cjs/src/index.d.ts",
9
11
  "import": "./dist/mjs/src/index.js",
10
12
  "require": "./dist/cjs/src/index.js"
11
13
  }
@@ -21,7 +21,7 @@ Options:
21
21
 
22
22
  --impl=<type> Specify the implementationt to use.
23
23
  rimraf: choose the best option
24
- native: the C++ implementation in Node.js
24
+ native: the built-in implementation in Node.js
25
25
  manual: the platform-specific JS implementation
26
26
  posix: the Posix JS implementation
27
27
  windows: the Windows JS implementation
@@ -1,11 +1,13 @@
1
1
  {
2
2
  "name": "rimraf",
3
- "version": "4.0.4",
3
+ "version": "4.0.6",
4
4
  "main": "./dist/cjs/src/index.js",
5
5
  "module": "./dist/mjs/src/index.js",
6
6
  "bin": "./dist/cjs/src/bin.js",
7
+ "types": "./dist/cjs/src/index.d.ts",
7
8
  "exports": {
8
9
  ".": {
10
+ "types": "./dist/cjs/src/index.d.ts",
9
11
  "import": "./dist/mjs/src/index.js",
10
12
  "require": "./dist/cjs/src/index.js"
11
13
  }
@@ -15,7 +15,7 @@ Options:
15
15
 
16
16
  --impl=<type> Specify the implementationt to use.
17
17
  rimraf: choose the best option
18
- native: the C++ implementation in Node.js
18
+ native: the built-in implementation in Node.js
19
19
  manual: the platform-specific JS implementation
20
20
  posix: the Posix JS implementation
21
21
  windows: the Windows JS implementation
package/package.json CHANGED
@@ -1,11 +1,13 @@
1
1
  {
2
2
  "name": "rimraf",
3
- "version": "4.0.4",
3
+ "version": "4.0.6",
4
4
  "main": "./dist/cjs/src/index.js",
5
5
  "module": "./dist/mjs/src/index.js",
6
6
  "bin": "./dist/cjs/src/bin.js",
7
+ "types": "./dist/cjs/src/index.d.ts",
7
8
  "exports": {
8
9
  ".": {
10
+ "types": "./dist/cjs/src/index.d.ts",
9
11
  "import": "./dist/mjs/src/index.js",
10
12
  "require": "./dist/cjs/src/index.js"
11
13
  }