# mkdirpd

> Simple create and delete folders

Latest version **0.1.8** (published 2015-10-16) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.8 |
| Published | 2015-10-16 |
| First published | 2015-07-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Dakia Franck |
| Maintainers | papac |
| Keywords | mkdirp, mkdirpd, mkdir-p, md, folder, create folder, recursive |

## Links

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

## Dependencies (1)

- [colors](https://npm.io/package/colors.md) ^1.1.2

## Alternatives

- [@mdxeditor/editor](https://npm.io/package/@mdxeditor/editor.md) — 962.4K weekly downloads
- [mmdb-lib](https://npm.io/package/mmdb-lib.md) — 680.9K weekly downloads
- [playcanvas](https://npm.io/package/playcanvas.md) — 36.2K weekly downloads
- [@glw907/cairn-cms](https://npm.io/package/@glw907/cairn-cms.md) — 967 weekly downloads
- [markdown-to-confluence](https://npm.io/package/markdown-to-confluence.md) — 103 weekly downloads

## Recent versions

- 0.1.8 (latest) — 2015-10-16
- 0.1.7 — 2015-10-07
- 0.1.6 — 2015-10-07
- 0.1.5 — 2015-10-04
- 0.0.5 — 2015-07-23
- 0.0.4 — 2015-07-23
- 0.0.3 — 2015-07-13
- 0.0.2 — 2015-07-09
- 0.0.1 — 2015-07-09
- 0.0.0 — 2015-07-09

## README

## mkdirpd
Simple create or delete directory.

## Change
So you are use this module. Please update you code.
* mkdir.create change to mkdir()
* add sync function

## Install

```js
// Local install
npm install mkdirpd --save-dev
// global install
npm install -g mkdirpd
```

### Usage
```js

var mkdir = require("mkdirpd");

mkdir("path/to/folders" [, mode = "0777"] [, function]);

mkdir(["folder", "other_folders"] [, mode = "0777"] [, function]);

mkdir.delete("path/to/folders" [, function]);

mkdir.sync("path/to/folders");

mkdir.sync(["folder", "other_folders"]);

```
+ by default, ` mode ` equals ` 0777 `.

```js
var mkdir = require("mkdirpd");
mkdir("folders/to/child", function(err) {
	if (err) {
		throw err;
	}
	console.log("Success");
});
```
## Exemple

### Create and delete folders

```js
var mkdir = require("mkdirpd");

mkdir("controller/model/views", function(err) {
	if (err) {
		throw err;
	}
	console.log("folders have created");
	setTimeout(function() {
		mkdir.delete("controller/model/views", function(err) {
			if (err) {
				throw err;
			}
			console.log("folders have deleted.");
		});
	}, 3000);
});
```

## Licence

MIT Licence
Copyright (c) 2015 "Franck Dakia"

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

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