mkdir-recursive

0.4.0 • Public • Published

mkdir-recursive

NPM version Linux Status Windows Status Dependency Status Coveralls

make/remove (asynchronous/synchronous) directories recursively

Installation

Install through NPM

npm install mkdir-recursive

or

git clone git://github.com/hex7c0/mkdir-recursive.git

API

make 3 directories asynchronous recursively

var fx = require('mkdir-recursive');
 
fx.mkdir('foo/bar/1', function(err) {
 
  console.log('done');
});

mkdir(path [, mode], callback) Node Doc

  • 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

  • path - String Dir pathname (default "required")
  • [mode]- Number Scrivi (default "0777")

rmdir(path, callback) Node Doc

  • path - String Dir pathname (default "required")
  • callback - Function Next callback when task is complete (default "required")

rmdirSync(path) Node Doc

  • path - String Dir pathname (default "required")

Examples

Take a look at my examples

License GPLv3

Readme

Keywords

Package Sidebar

Install

npm i mkdir-recursive

Weekly Downloads

5,622

Version

0.4.0

License

GPL-3.0

Last publish

Collaborators

  • hex7c0