UNPKG

pkg

Version:

Package your Node.js project into an executable

15 lines 454 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.plusx = void 0; const fs_extra_1 = require("fs-extra"); async function plusx(file) { const s = await fs_extra_1.stat(file); const newMode = s.mode | 64 | 8 | 1; if (s.mode === newMode) { return; } const base8 = newMode.toString(8).slice(-3); await fs_extra_1.chmod(file, base8); } exports.plusx = plusx; //# sourceMappingURL=chmod.js.map