# mkdirp2

> Recursively mkdir, like `mkdir -p`

Latest version **1.0.5** (published 2021-07-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install mkdirp2
pnpm add mkdirp2
yarn add mkdirp2
bun add mkdirp2
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2021-07-04 |
| First published | 2017-05-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 18.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | James Halliday |
| Maintainers | 75lb |
| Keywords | mkdir, directory |

## Links

- npm: https://www.npmjs.com/package/mkdirp2
- Repository: https://github.com/75lb/mkdirp2
- Homepage: https://github.com/75lb/mkdirp2#readme
- Issues: https://github.com/75lb/mkdirp2/issues
- npm.io page: https://npm.io/package/mkdirp2

## Recent versions

- 1.0.5 (latest) — 2021-07-04
- 1.0.4 — 2018-05-21
- 1.0.3 — 2017-05-12
- 1.0.2 — 2017-05-06
- 1.0.1 — 2017-05-06
- 1.0.0 — 2017-05-06

## README

[![view on npm](http://img.shields.io/npm/v/mkdirp2.svg)](https://www.npmjs.org/package/mkdirp2)
[![npm module downloads](http://img.shields.io/npm/dt/mkdirp2.svg)](https://www.npmjs.org/package/mkdirp2)
[![Build Status](https://travis-ci.org/75lb/mkdirp2.svg?branch=master)](https://travis-ci.org/75lb/mkdirp2)
[![Dependency Status](https://david-dm.org/75lb/mkdirp2.svg)](https://david-dm.org/75lb/mkdirp2)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/feross/standard)

***DEPRECATED: Use Node.js [fs.mkdir](https://nodejs.org/dist/latest-v16.x/docs/api/fs.html#fs_fspromises_mkdir_path_options)***

# mkdirp2

A maintained fork of the stagnant [mkdirp](https://github.com/substack/node-mkdirp).

## Differences

1. Command-line executable and its dependencies removed, this fork is for Nodejs use only.
2. Extended with a promise method:

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

---
_Source: https://npm.io/package/mkdirp2 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
