0.1.0 • Published 7 years ago
mkdirpsync v0.1.0
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
0.1.0
7 years ago