mkdirp-bluebird

Promise (bluebird) version of mkdirp

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
mkdirp-bluebird
011.3.25 years ago7 years agoMinified + gzip package size for mkdirp-bluebird in KB

Readme

mkdirp-bluebird
Build Statustravis-url npm
codecov bitHound Overall Score bitHound Dependencies
Known Vulnerabilities
Gratipay

Install

npm install --save mkdirp-bluebird

API

const mkdirp = require('mkdirp-bluebird')

mkdirp(dir, , options)

pattern: String options: Object or String Return: Object (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.
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.

License

MIT License

Credits

Thanks Ahmad Nassri for the sources of mkdirp-promise