# fs-force-mkdir

> Just provide a path to create directories

Latest version **1.4.0** (published 2016-05-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install fs-force-mkdir
pnpm add fs-force-mkdir
yarn add fs-force-mkdir
bun add fs-force-mkdir
```

## Health

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

Positive: no vulnerabilities.

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

Negative: insecure dependencies; abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.4.0 |
| Published | 2016-05-22 |
| First published | 2016-05-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6.0.0 |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Hoàng Văn Khải |
| Maintainers | khai96_ |
| Keywords | force-mkdir, force-create-directory |

## Links

- npm: https://www.npmjs.com/package/fs-force-mkdir
- Repository: https://github.com/ksxnodemodules/fs-force-mkdir
- Homepage: https://github.com/ksxnodemodules/fs-force-mkdir#readme
- Issues: https://github.com/ksxnodemodules/fs-force-mkdir/issues
- npm.io page: https://npm.io/package/fs-force-mkdir

## Dependencies (3)

- [try-promise](https://npm.io/package/try-promise.md) ^1.0.0
- [fs-force-utils](https://npm.io/package/fs-force-utils.md) github:ksxnodemodules/fs-force-utils#v0.0.0
- [fs-one-promise-queue](https://npm.io/package/fs-one-promise-queue.md) ^1.0.0

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 1.4.0 (latest) — 2016-05-22
- 1.2.0 — 2016-05-18
- 1.0.1 — 2016-05-18
- 1.0.0 — 2016-05-18

## README

# fs-force-mkdir

## Requirements

 * Node >= 6.0.0

## Usage

```javascript
var mkdir = require('fs-force-mkdir');
mkdir('./a/b/c', (error, info) => {
    if (error) {
        console.error('Failed', error);
    } else {
        console.log('Succeed', info);
    }
});
```

The code above would check for existence of `'./a'`, `'./a/b'` and `'./a/b/c'`,
 * If one is a directory, `mkdir` skip this directory and check the next
 * If one doesn't exist, `mkdir` would creates it as a empty directory
 * If one is a file, `mkdir` would deletes that file and creates a directory with the same name

## License

[MIT](https://github.com/ksxnodemodules/my-licenses/blob/master/MIT.md) © [Hoàng Văn Khải](https://github.com/KSXGitHub)

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