Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hex7c0/mkdir-recursive
make/remove directories recursively for Nodejs
https://github.com/hex7c0/mkdir-recursive
mkdir mkdir-recursive nodejs
Last synced: about 1 month ago
JSON representation
make/remove directories recursively for Nodejs
- Host: GitHub
- URL: https://github.com/hex7c0/mkdir-recursive
- Owner: hex7c0
- License: gpl-3.0
- Created: 2015-02-25T15:42:51.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2023-04-16T02:56:00.000Z (over 1 year ago)
- Last Synced: 2024-11-11T18:32:37.829Z (about 2 months ago)
- Topics: mkdir, mkdir-recursive, nodejs
- Language: JavaScript
- Homepage: https://github.com/hex7c0/mkdir-recursive
- Size: 70.3 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# [mkdir-recursive](https://github.com/hex7c0/mkdir-recursive)
[![NPM version](https://img.shields.io/npm/v/mkdir-recursive.svg)](https://www.npmjs.com/package/mkdir-recursive)
[![Linux Status](https://img.shields.io/travis/hex7c0/mkdir-recursive.svg?label=linux)](https://travis-ci.org/hex7c0/mkdir-recursive)
[![Windows Status](https://img.shields.io/appveyor/ci/hex7c0/mkdir-recursive.svg?label=windows)](https://ci.appveyor.com/project/hex7c0/mkdir-recursive)
[![Dependency Status](https://img.shields.io/david/hex7c0/mkdir-recursive.svg)](https://david-dm.org/hex7c0/mkdir-recursive)
[![Coveralls](https://img.shields.io/coveralls/hex7c0/mkdir-recursive.svg)](https://coveralls.io/r/hex7c0/mkdir-recursive)make/remove (asynchronous/synchronous) directories recursively
## Installation
Install through NPM
```bash
npm install mkdir-recursive
```
or
```bash
git clone git://github.com/hex7c0/mkdir-recursive.git
```## API
make 3 directories asynchronous recursively
```js
var fx = require('mkdir-recursive');fx.mkdir('foo/bar/1', function(err) {
console.log('done');
});
```### mkdir(path [, mode], callback) [Node Doc](http://nodejs.org/api/fs.html#fs_fs_mkdir_path_mode_callback)
- `path` - **String** Dir pathname *(default "required")*
- `[mode]`- **Number** Scrivi *(default "0777")*
- `callback` - **Function** Next callback when task is complete *(default "required")*### mkdirSync(path [, mode]) [Node Doc](http://nodejs.org/api/fs.html#fs_fs_mkdirsync_path_mode)
- `path` - **String** Dir pathname *(default "required")*
- `[mode]`- **Number** Scrivi *(default "0777")*### rmdir(path, callback) [Node Doc](http://nodejs.org/api/fs.html#fs_fs_rmdir_path_callback)
- `path` - **String** Dir pathname *(default "required")*
- `callback` - **Function** Next callback when task is complete *(default "required")*### rmdirSync(path) [Node Doc](http://nodejs.org/api/fs.html#fs_fs_rmdirsync_path)
- `path` - **String** Dir pathname *(default "required")*
## Examples
Take a look at my [examples](examples)
### [License GPLv3](LICENSE)