Neptune's Potato Monsters

    make-dir-cli

    3.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

    Install

    npm i make-dir-cli

    DownloadsWeekly Downloads

    13,041

    Version

    3.0.0

    License

    MIT

    Unpacked Size

    3.58 kB

    Total Files

    4

    Last publish

    Collaborators

    • sindresorhus