Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 22 lines (13 sloc) 0.54 kB
d701679 @isaacs FIRST!
authored
1 A `rm -rf` for node.
cabcc5b @isaacs install instructions
authored
2
3 Install with `npm install rimraf`, or just drop rimraf.js somewhere.
15ddf51 @isaacs Document options
authored
4
5 ## API
6
259f75b @isaacs Remove options, check dirs for writableness, too
authored
7 `rimraf(f, callback)`
15ddf51 @isaacs Document options
authored
8
9 The callback will be called with an error if there is one. Certain
10 errors are handled for you:
11
12 * `EBUSY` - rimraf will back off a maximum of opts.maxBusyTries times
13 before giving up.
14 * `EMFILE` - If too many file descriptors get opened, rimraf will
15 patiently wait until more become available.
16
17
18 ## rimraf.sync
19
20 It can remove stuff synchronously, too. But that's not so good. Use
21 the async API. It's better.
Something went wrong with that request. Please try again.