Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sindresorhus/make-dir-cli
Make directories and their parents if needed - Like `mkdir -p`, but cross-platform
https://github.com/sindresorhus/make-dir-cli
Last synced: about 1 month ago
JSON representation
Make directories and their parents if needed - Like `mkdir -p`, but cross-platform
- Host: GitHub
- URL: https://github.com/sindresorhus/make-dir-cli
- Owner: sindresorhus
- License: mit
- Created: 2017-05-09T18:17:53.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2023-06-26T12:12:22.000Z (over 1 year ago)
- Last Synced: 2024-04-22T12:24:01.263Z (7 months ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 124
- Watchers: 6
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# make-dir-cli
> Make directories and their parents if needed - Like `mkdir -p`, but cross-platform
## Install
```sh
npm install --global make-dir-cli
```## Usage
```
$ make-dir --helpUsage
$ make-dir …Options
--mode Directory permissionsExamples
$ 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:
```sh
alias md=make-dir
```## Related
- [make-dir](https://github.com/sindresorhus/make-dir) - API for this package
- [del-cli](https://github.com/sindresorhus/del-cli) - Delete files and directories