https://github.com/gera2ld/ensure-dir
Ensure a directory exists, if not, make it.
https://github.com/gera2ld/ensure-dir
Last synced: over 1 year ago
JSON representation
Ensure a directory exists, if not, make it.
- Host: GitHub
- URL: https://github.com/gera2ld/ensure-dir
- Owner: gera2ld
- Created: 2016-02-03T03:22:35.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-03T03:43:29.000Z (over 10 years ago)
- Last Synced: 2025-03-28T17:11:40.559Z (over 1 year ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
ensure-dir
===



Installation
---
``` sh
$ npm install ensure-dir
```
Usage
---
``` javascript
const ensureDir = require('ensure-dir')
ensureDir('a/b/c').then(() => {
// doStuff
})
ensureDir(['a/b/c', 'a/b/d', 'e/f/g']).then(() => {
// doStuff
})
```