10 lines
220 B
JavaScript
10 lines
220 B
JavaScript
|
'use strict'
|
||
|
|
||
|
const mkdirp = require('mkdirp')
|
||
|
|
||
|
module.exports = function (dir, opts) {
|
||
|
return new Promise((resolve, reject) => {
|
||
|
mkdirp(dir, opts, (err, made) => err === null ? resolve(made) : reject(err))
|
||
|
})
|
||
|
}
|