1.1.6 • Published 10 years ago

mass-mkdirp v1.1.6

Weekly downloads
7
License
MIT
Repository
github
Last release
10 years ago

mass-mkdirp

Install

npm install --save mass-mkdirp

Usage

var massMkdirp = require('mass-mkdirp');

massMkdirp('new', ['path', 'joined'], 'other/path').then(function(){
    console.log('done');
}).catch(function(e){
    console.log('failed!');
    console.log(e.stack);
});

Or:

var massMkdirp = require('mass-mkdirp');

massMkdirp(['new', ['path', 'joined'], 'other/path']).then(function(){
    console.log('done');
}).catch(function(e){
    console.log('failed!');
    console.log(e.stack);
});

API

massMkdirp(array|string, ...) -> promise

Accepts an array of paths, and a variable amount of path arguments.

Paths can be passed as arrays that will be automatically joined.

A promise is returned that resolves to all of the paths created.

Paths are created in parallel so the operations should be fairly fast.

1.1.6

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago