21 lines
934 B
Markdown
21 lines
934 B
Markdown
[](https://www.npmjs.org/package/mkdirp2)
|
|
[](https://www.npmjs.org/package/mkdirp2)
|
|
[](https://travis-ci.org/75lb/mkdirp2)
|
|
[](https://david-dm.org/75lb/mkdirp2)
|
|
[](https://github.com/feross/standard)
|
|
|
|
# mkdirp2
|
|
|
|
A maintained fork of the stagnant [mkdirp](https://github.com/substack/node-mkdirp).
|
|
|
|
## Differences
|
|
|
|
1. Command-line executable and its dependencies removed, this fork is for Nodejs use only.
|
|
2. Extended with a promise method:
|
|
|
|
```js
|
|
mkdirp.promise('tmp/tmp2/file')
|
|
.then(() => console.log('Created'))
|
|
.catch(err => console.error(`Failed: ${err.message}`))
|
|
```
|