Make directories and their parents if needed - Like
mkdir -p
, but cross-platform
npm install --global make-dir-cli
$ 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
Create a shell alias for less typing:
alias md=make-dir