Skip to content

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

make-dir-cli

Make directories and their parents if needed - Like mkdir -p, but cross-platform

Install

npm install --global make-dir-cli

Usage

$ make-dir --help

  Usage
    $ make-dir <directory> …

  Options
    --mode  Directory permissions

  Examples
    $ make-dir unicorn/awesome foo/bar
    $ make-dir rainbow --mode=0666
$ pwd
/Users/sindresorhus/fun

$ tree
.

$ make-dir unicorn/rainbow/cake

$ tree
.
└── unicorn
    └── rainbow
        └── cake

Tip

Create a shell alias for less typing:

alias md=make-dir

Related

About

Make directories and their parents if needed - Like `mkdir -p`, but cross-platform

Resources

Code of conduct

Contributing

Stars

124 stars

Watchers

4 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages