Current Folder

This commit is contained in:
Luis Fernando Molina committed 2020-11-20 14:05:59 +01:00
1 parent 8b3382289b
commit cfcada880d
4379 files changed

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
'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))
})
}
+44
View File
@@ -0,0 +1,44 @@
{
"version": "5.0.1",
"name": "mkdirp-promise",
"description": "Promise version of mkdirp",
"author": "Ahmad Nassri <ahmad@ahmadnassri.com> (https://www.ahmadnassri.com/)",
"homepage": "https://github.com/ahmadnassri/mkdirp-promise",
"repository": {
"type": "git",
"url": "https://github.com/ahmadnassri/mkdirp-promise.git"
},
"license": "ISC",
"main": "lib/index.js",
"keywords": [
"mkdirp",
"promise"
],
"engines": {
"node": ">=4"
},
"files": [
"lib"
],
"bugs": {
"url": "https://github.com/ahmadnassri/mkdirp-promise/issues"
},
"scripts": {
"pretest": "snazzy && echint",
"test": "tap test",
"coverage": "tap test --reporter silent --coverage"
},
"devDependencies": {
"echint": "^2.1.0",
"rimraf": "^2.5.4",
"snazzy": "^6.0.0",
"tap": "^9.0.2"
},
"dependencies": {
"mkdirp": "*"
}
,"_resolved": "https://registry.npmjs.org/mkdirp-promise/-/mkdirp-promise-5.0.1.tgz"
,"_integrity": "sha1-6bj2jlUsaKnBcTuEiD96HdA5uKE="
,"_from": "mkdirp-promise@^5.0.1"
}