/usr/lib/node_modules/pnpm/dist/node_modules/mkdirp/dist/cjs/src
NameSizeModeActions
bin.d.ts.map1060644editdlrm
bin.js24300644editdlrm
bin.js.map44340644editdlrm
find-made.d.ts.map3280644editdlrm
find-made.js11440644editdlrm
find-made.js.map22900644editdlrm
index.d.ts.map6640644editdlrm
index.js31900644editdlrm
index.js.map30550644editdlrm
mkdirp-manual.d.ts.map4870644editdlrm
mkdirp-manual.js26180644editdlrm
mkdirp-manual.js.map50790644editdlrm
mkdirp-native.d.ts.map3940644editdlrm
mkdirp-native.js16890644editdlrm
mkdirp-native.js.map31840644editdlrm
opts-arg.d.ts.map19810644editdlrm
opts-arg.js13640644editdlrm
opts-arg.js.map47910644editdlrm
path-arg.d.ts.map1570644editdlrm
path-arg.js9530644editdlrm
path-arg.js.map16210644editdlrm
use-native.d.ts.map2540644editdlrm
use-native.js7630644editdlrm
use-native.js.map14780644editdlrm
Edit: /usr/lib/node_modules/pnpm/dist/node_modules/mkdirp/dist/cjs/src/bin.js (2430B)
#!/usr/bin/env node "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const package_json_1 = require("../package.json"); const usage = () => ` usage: mkdirp [DIR1,DIR2..] {OPTIONS} Create each supplied directory including any necessary parent directories that don't yet exist. If the directory already exists, do nothing. OPTIONS are: -m If a directory needs to be created, set the mode as an octal --mode= permission string. -v --version Print the mkdirp version number -h --help Print this helpful banner -p --print Print the first directories created for each path provided --manual Use manual implementation, even if native is available `; const dirs = []; const opts = {}; let doPrint = false; let dashdash = false; let manual = false; for (const arg of process.argv.slice(2)) { if (dashdash) dirs.push(arg); else if (arg === '--') dashdash = true; else if (arg === '--manual') manual = true; else if (/^-h/.test(arg) || /^--help/.test(arg)) { console.log(usage()); process.exit(0); } else if (arg === '-v' || arg === '--version') { console.log(package_json_1.version); process.exit(0); } else if (arg === '-p' || arg === '--print') { doPrint = true; } else if (/^-m/.test(arg) || /^--mode=/.test(arg)) { // these don't get covered in CI, but work locally // weird because the tests below show as passing in the output. /* c8 ignore start */ const mode = parseInt(arg.replace(/^(-m|--mode=)/, ''), 8); if (isNaN(mode)) { console.error(`invalid mode argument: ${arg}\nMust be an octal number.`); process.exit(1); } /* c8 ignore stop */ opts.mode = mode; } else dirs.push(arg); } const index_js_1 = require("./index.js"); const impl = manual ? index_js_1.mkdirp.manual : index_js_1.mkdirp; if (dirs.length === 0) { console.error(usage()); } // these don't get covered in CI, but work locally /* c8 ignore start */ Promise.all(dirs.map(dir => impl(dir, opts))) .then(made => (doPrint ? made.forEach(m => m && console.log(m)) : null)) .catch(er => { console.error(er.message); if (er.code) console.error(' code: ' + er.code); process.exit(1); }); /* c8 ignore stop */ //# sourceMappingURL=bin.js.map