0.1.0 • Published 7 years ago

mkdirpsync v0.1.0

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

mkdirSync

A Node.js module to emulate Bash's mkdir -p based on fs.mkdirSync.

example

example.js

var mkdirpSync = require('mkdirpsync');

mkdirpSync('/tmp/foo/bar/baz');
console.log('Dirs created!');

methods

var mkdirpSync = require('mkdirpsync');

mkdirpSync(path, mode)

It works the same way as fs.mkdirSync, but recursively creating the dirs.

install

With npm, do:

npm install mkdirpsync

license

MIT