UNPKG

@zkochan/pnpm

Version:

A fast implementation of npm install

16 lines (13 loc) 313 B
var debug = require('debug')('pnpm:mkdirp') /* * mkdir -p as a promise. */ module.exports = function mkdirp (path) { return new Promise(function (resolve, reject) { debug(path) require('mkdirp')(path, function (err) { if (err) reject(err) else resolve(path) }) }) }