mkdir-p
v0.0.7
Published
mkdir-p
Downloads
68,536
Readme
mkdir-p
easy used 'mkdir', when dirpath or parent dirpath not exist, it will create the directory automatically.
install
npm install mkdir-p
usage
Sync:
var mkdir = require('mkdir-p');
mkdir.sync('/a/b/c/d');
Async:
var mkdir = require('mkdir-p');
mkdir('/a/b/c/d', function(err){
if(err){
console.log(err);
} else {
console.log('ok');
}
});