We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db19dd2 commit d21dc9eCopy full SHA for d21dc9e
README.md
@@ -20,10 +20,10 @@ Install with `npm install rimraf`.
20
Hybrid module, load either with `import` or `require()`.
21
22
```js
23
-// default export is the main rimraf function
24
-import rimraf from 'rimraf'
+// default export is the main rimraf function, or use named imports
+import { rimraf } from 'rimraf'
25
// or
26
-const rimraf = require('rimraf').default
+const { rimraf } = require('rimraf')
27
28
// other strategies exported as well
29
import { rimraf, rimrafSync, native, nativeSync } from 'rimraf'
0 commit comments