1.3.2 • Published 7 years ago

mkdirp-bluebird v1.3.2

Weekly downloads
419
License
MIT
Repository
github
Last release
7 years ago

mkdirp-bluebird

Build Status npm

codecov bitHound Overall Score bitHound Dependencies

Known Vulnerabilities

Gratipay

Bluebird's promise version of mkdirp:

Like mkdir -p, but in node.js!

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

1.3.2

7 years ago

1.3.0

7 years ago

2.0.0

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.0.1

8 years ago

1.0.0

8 years ago