summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/mkdirp/README.markdown
blob: 0393c4ea535864fda3ad5e334e96ffe3d2d84663 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
mkdirp
======

Like `mkdir -p`, but in node.js!

Example
=======

pow.js
------
    var mkdirp = require('mkdirp');
    
    mkdirp('/tmp/foo/bar/baz', 0755, function (err) {
        if (err) console.error(err)
        else console.log('pow!')
    });

Output
    pow!

And now /tmp/foo/bar/baz exists, huzzah!