How to use the mkdirp.apply function in mkdirp

To help you get started, we’ve selected a few mkdirp examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jayliang701 / weroll / utils / Utils.js View on Github external
FS.mkdirp = function() {
    let mkdirp = require("mkdirp");
    mkdirp.apply(null, Array.prototype.slice.call(arguments, 0));
}
github microsoft / appcenter-cli / src / util / misc / promisfied-fs.ts View on Github external
return new Promise((resolve, reject) => {
    mkDirP.apply(null, args.concat([(err: Error, made: string) => {
      if (err) {
        reject(err);
      } else {
        resolve(made);
      }
    }]));
  });
}
github microsoft / appcenter-cli / src / util / misc / promisfied-fs.ts View on Github external
return new Promise((resolve, reject) => {
    mkDirP.apply(null, args.concat([(err: Error, made: string) => {
      if (err) {
        reject(err);
      } else {
        resolve(made);
      }
    }]));    
  });
}

mkdirp

Recursively mkdir, like `mkdir -p`

MIT
Latest version published 2 years ago

Package Health Score

67 / 100
Full package analysis