mkdirp-promise

Promise version of mkdirp

This package is broken and no longer maintained. 'mkdirp' itself supports promises now, please switch to that.
Last updated 9 years ago by ahmadnassri .
ISC · Repository · Bugs · Original npm
$ cnpm install mkdirp-promise 
SYNC missed versions from official npm registry.

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.


:copyright: ahmadnassri.com  ·  License: ISC  ·  Github: @ahmadnassri  ·  Twitter: @ahmadnassri

Current Tags

  • 5.0.1                                ...           latest (9 years ago)

1 Versions

  • 5.0.1 [deprecated]           ...           9 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org