mkdir-p
mkdir-p
Last updated 5 years ago by pillys .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install mkdir-p 
SYNC missed versions from official npm registry.

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');
  }
});

License

MIT

Current Tags

  • 0.0.7                                ...           latest (5 years ago)

7 Versions

  • 0.0.7                                ...           5 years ago
  • 0.0.6                                ...           6 years ago
  • 0.0.5                                ...           6 years ago
  • 0.0.4                                ...           6 years ago
  • 0.0.3                                ...           6 years ago
  • 0.0.2                                ...           6 years ago
  • 0.0.1                                ...           6 years ago

Copyright 2014 - 2016 © taobao.org |