npm.io
1.0.5 • Published 5 years ago

mkdirp2

Licence
MIT
Version
1.0.5
Deps
0
Size
18 kB
Vulns
0
Weekly
0
Stars
1

view on npm npm module downloads Build Status Dependency Status js-standard-style

DEPRECATED: Use Node.js fs.mkdir

mkdirp2

A maintained fork of the stagnant mkdirp.

Differences

  1. Command-line executable and its dependencies removed, this fork is for Nodejs use only.

  2. Extended with a promise method:

    mkdirp.promise('tmp/tmp2/file')
      .then(() => console.log('Created'))
      .catch(err => console.error(`Failed: ${err.message}`))

Keywords