Promise (bluebird) version of mkdirp
npm install mkdirp-bluebird![Build Status][travis-url]






[Bluebird's promise] version of [mkdirp]:
> Like mkdir -p, but in node.js!
``sh`
npm install --save mkdirp-bluebird
`js`
const mkdirp = require('mkdirp-bluebird')
pattern: StringObject
options: or StringObject
Return: ([Promise])
When it finishes, it will be fulfilled with the first directory made that had to be created, if any.
When it fails, it will be rejected with an error as its first argument.
`js
mkdirp('/tmp/foo/bar/baz')
.then(function (made) {
console.log(made) //=> '/tmp/foo'
})
.catch(function (err) {
console.error(err)
})
})
``
#### options
The option object will be directly passed to mkdirp.
Thanks Ahmad Nassri for the sources of mkdirp-promise
[travis-url]: https://travis-ci.org/maxkoryukov/mkdirp-bluebird
[npm-url]: https://www.npmjs.com/package/mkdirp-bluebird
[david-url]: https://david-dm.org/maxkoryukov/mkdirp-bluebird
[david-image]: https://img.shields.io/david/ahmadnassri/mkdirp-promise.svg?style=flat-square
[mkdirp]: https://github.com/substack/node-mkdirp
[Promise]: http://bluebirdjs.com/