node package manager
Easy sharing. Manage teams and permissions with one click. Create a free org »


mkdirp-promise version License

Promise version of mkdirp:

Like mkdir -p, but in node.js!

Build Status Downloads Code Climate Coverage Status Dependency Status Dependencies


npm install --only=production --save mkdirp-promise


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.

  .then(console.log) //=> '/tmp/foo' 


The option object will be directly passed to mkdirp.

©️  ·  License: ISC  ·  Github: @ahmadnassri  ·  Twitter: @ahmadnassri