make-dir-cli

4.0.0 • Public • Published

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

/make-dir-cli/

    Package Sidebar

    Install

    npm i make-dir-cli

    Weekly Downloads

    9,951

    Version

    4.0.0

    License

    MIT

    Unpacked Size

    3.63 kB

    Total Files

    4

    Last publish

    Collaborators

    • sindresorhus