mkdirp-promise
Promise version of mkdirp
Last updated 3 years ago by ahmadnassri .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ 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 (3 years ago)

13 Versions

  • 5.0.1                                ...           3 years ago
  • 5.0.0                                ...           3 years ago
  • 4.0.1                                ...           3 years ago
  • 4.0.0                                ...           3 years ago
  • 3.0.1                                ...           4 years ago
  • 3.0.0                                ...           4 years ago
  • 2.0.0                                ...           4 years ago
  • 1.1.0                                ...           4 years ago
  • 1.0.4                                ...           4 years ago
  • 1.0.3                                ...           5 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 328
This Week 1,085
This Month 7,312
Last Day 360
Last Week 2,195
Last Month 7,729
Dependencies (1)
Dev Dependencies (4)
Dependents (305)

Copyright 2014 - 2016 © taobao.org |