This package has been deprecated

Author message:

This package is broken and no longer maintained. 'mkdirp' itself supports promises now, please switch to that.

mkdirp-promise
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/mkdirp-promise package

5.0.1 • Public • Published

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

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

Readme

Keywords

Package Sidebar

Install

npm i mkdirp-promise

Weekly Downloads

403,712

Version

5.0.1

License

ISC

Last publish

Collaborators

  • ahmadnassri