# fs-force-mkdir-sync

> Just provide a path to create directories

Latest version **1.1.0** (published 2016-05-18) · MIT license · 0 weekly downloads

## Install

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

## 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.1.0 |
| Published | 2016-05-18 |
| First published | 2016-05-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6.0.0 |
| Dependencies | 2 |
| 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-sync
- Repository: https://github.com/ksxnodemodules/fs-force-mkdir-sync
- Homepage: https://github.com/ksxnodemodules/fs-force-mkdir-sync#readme
- Issues: https://github.com/ksxnodemodules/fs-force-mkdir-sync/issues
- npm.io page: https://npm.io/package/fs-force-mkdir-sync

## Dependencies (2)

- [just-try](https://npm.io/package/just-try.md) >=1.0.0 <2.0.0
- [fs-force-utils](https://npm.io/package/fs-force-utils.md) github:ksxnodemodules/fs-force-utils#v0.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.1.0 (latest) — 2016-05-18
- 1.0.2 — 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 mkdirSync = require('fs-force-mkdir-sync');
try {
    let info = mkdirSync('./a/b/c');
    console.log('Succeed', info);
} catch (error) {
    console.error('Failed', error);
}
```

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-sync · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
