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