Skip to content

aweary/mkdirps-brackets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mkdirps-brackets

Build Status

A small utility that provides bracket-expansion syntax capabilities to mkdirp.

Installation

Use npm to install:

npm install mkdirps-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('mkdirps-brackets');

mkdirp('src/{styles,scripts}', function(err){
    if(err) throw err;
});

This will created src, src/styles and src/scripts.

About

Allows for bracket expansions to be used in paths for folder creation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published