mkdirp2

v1.0.5
Recursively mkdir, like `mkdir -p`
mkdir directory

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}`))
    
npm i mkdirp2

Metadata

  • MIT
  • Whatever
  • James Halliday
  • released 7/4/2021

Downloads

Maintainers