Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/robojones/create-path
Promise version of mkdirp
https://github.com/robojones/create-path
async create javascript mkdir nodejs path promise
Last synced: about 1 month ago
JSON representation
Promise version of mkdirp
- Host: GitHub
- URL: https://github.com/robojones/create-path
- Owner: robojones
- License: mit
- Created: 2016-11-21T06:15:02.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-09-16T15:18:32.000Z (over 2 years ago)
- Last Synced: 2024-11-28T16:07:47.477Z (about 1 month ago)
- Topics: async, create, javascript, mkdir, nodejs, path, promise
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/create-path/
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# create-path
runs `npx mkdirp ` when you write `npm init path `.
**This only exists out of historical reasons** where mkdirp was not promisified and no npx existed.
Today this is not needed anymore.
It only protects the create-path namespace on npmjs with a useful package wrapper.A wrapper for mkdirp to also use it with npm init like:
```
npm init path ~/myProject
```It is using `npm:mkdirp` under the hood, and it is not useful for anything other than using it with `npm init`.
Generally, you should always prefer```
npx mkdirp ~/myProject
```This only exists because of historical reasons where mkdirp was not promisified and no npx existed. Today this is not
needed anymore.