# @warren-bank/mkdir-sync

> Polyfill library for 'fs.mkdirSync()' to support the 'recursive' option in versions of Node.js older than v10.12.0

Latest version **1.0.2** (published 2023-05-26) · GPL-2.0 license · 0 weekly downloads

## Install

```sh
npm install @warren-bank/mkdir-sync
pnpm add @warren-bank/mkdir-sync
yarn add @warren-bank/mkdir-sync
bun add @warren-bank/mkdir-sync
```

## 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.2 |
| Published | 2023-05-26 |
| First published | 2023-05-26 |
| Weekly downloads | 0 |
| License | GPL-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 20.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Warren Bank |
| Maintainers | warren-bank |

## Links

- npm: https://www.npmjs.com/package/@warren-bank/mkdir-sync
- Repository: https://github.com/warren-bank/node-mkdirSync
- Homepage: https://github.com/warren-bank/node-mkdirSync#readme
- Issues: https://github.com/warren-bank/node-mkdirSync/issues
- npm.io page: https://npm.io/package/@warren-bank/mkdir-sync

## Recent versions

- 1.0.2 (latest) — 2023-05-26
- 1.0.1 — 2023-05-26
- 1.0.0 — 2023-05-26

## README

### [mkdirSync](https://github.com/warren-bank/node-mkdirSync)

Polyfill library for [`fs.mkdirSync()`](https://nodejs.org/api/fs.html#fsmkdirsyncpath-options) to support the `recursive` option in versions of Node.js older than _v10.12.0_

#### Usage:

#### add library to project as a dependency:

```bash
  npm install --save "@warren-bank/mkdir-sync"
```

#### use library in project:

```bash
  const mkdirSync = require('@warren-bank/mkdir-sync')

  const path = require('path')
  const dirpath = path.join(__dirname, 'a', 'b', 'c')

  try {
    mkdirSync(dirpath, {recursive: true})
  }
  catch(error) {
    console.log(error)
  }
```

#### Legal:

* copyright: [Warren Bank](https://github.com/warren-bank)
* license: [GPL-2.0](https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt)

- - - -

#### Similar `npm` Libraries:

* `mkdir-recursive`
  - [npm repo](https://www.npmjs.com/package/mkdir-recursive)
  - [github repo](https://github.com/hex7c0/mkdir-recursive)
    * [code](https://github.com/hex7c0/mkdir-recursive/blob/0.4.0/index.js) is well written

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