You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
1 year ago | |
|---|---|---|
| .. | ||
| lib | 1 year ago | |
| LICENSE | 1 year ago | |
| README.md | 1 year ago | |
| package.json | 1 year ago | |
README.md
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