mkdirps-brackets
v0.1.0
Published
mkdirp functionality with brace expansion capabilities
Downloads
4
Maintainers
Readme
mkdirp-brackets
A small utility that provides bracket-expansion syntax capabilities to mkdirp
.
Installation
Use npm to install:
npm install mkdirp-brackets
Usage
Anyone familiar with using a mkdir -p
in a shell will be familiar with the bracket expansion syntax. It allows for the creation of multiple subdirectories at once.
For example, if you wanted to created a basic src
folder for a frontend project, you could do:
var mkdirp = require('mkdirp-brackets');
mkdirp('src/{styles,scripts}', function(err){
if(err) throw err;
});
This will created src
, src/styles
and src/scripts
.