mkdirps-brackets

0.1.0 • Public • Published

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.

Package Sidebar

Install

npm i mkdirps-brackets

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • kierkegaurd