Package Exports
- mkdirp-promise
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (mkdirp-promise) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
mkdirp-promise

Like mkdir -p, but in node.js!
Install
npm install --only=production --save mkdirp-promise
API
const mkdirp = require('mkdirp-promise')
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(console.log) //=> '/tmp/foo'
.catch(console.error)
options
The option
object will be directly passed to mkdirp.
©️ ahmadnassri.com · License: ISC · Github: @ahmadnassri · Twitter: @ahmadnassri