ensure-dir
v0.1.0
Published
Make sure a directory exists and create the non-exist ones.
Downloads
164
Readme
ensure-dir
Installation
$ npm install ensure-dir
Usage
const ensureDir = require('ensure-dir')
ensureDir('a/b/c').then(() => {
// doStuff
})
ensureDir(['a/b/c', 'a/b/d', 'e/f/g']).then(() => {
// doStuff
})