REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.18 KB
Close
//opt/alt/alt-nodejs22/root/usr/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/validate-options.js
Text
Base64
const validateOptions = options => { if (typeof options !== 'object' || !options) { throw new TypeError('invalid options object provided to runScript') } const { event, path, scriptShell, env = {}, stdio = 'pipe', args = [], cmd, } = options if (!event || typeof event !== 'string') { throw new TypeError('valid event not provided to runScript') } if (!path || typeof path !== 'string') { throw new TypeError('valid path not provided to runScript') } if (scriptShell !== undefined && typeof scriptShell !== 'string') { throw new TypeError('invalid scriptShell option provided to runScript') } if (typeof env !== 'object' || !env) { throw new TypeError('invalid env option provided to runScript') } if (typeof stdio !== 'string' && !Array.isArray(stdio)) { throw new TypeError('invalid stdio option provided to runScript') } if (!Array.isArray(args) || args.some(a => typeof a !== 'string')) { throw new TypeError('invalid args option provided to runScript') } if (cmd !== undefined && typeof cmd !== 'string') { throw new TypeError('invalid cmd option provided to runScript') } } module.exports = validateOptions
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 1 × Files: 8
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
node-gyp-bin
DIR
-
drwxr-xr-x
2026-03-14 07:02:09
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
is-server-package.js
245 B
lrw-r--r--
2026-02-23 06:54:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
make-spawn-args.js
1.10 KB
lrw-r--r--
2026-02-23 06:54:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
package-envs.js
826 B
lrw-r--r--
2026-02-23 06:54:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
run-script-pkg.js
2.91 KB
lrw-r--r--
2026-02-23 06:54:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
run-script.js
520 B
lrw-r--r--
2026-02-23 06:54:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
set-path.js
1.47 KB
lrw-r--r--
2026-02-23 06:54:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
signal-manager.js
1.03 KB
lrw-r--r--
2026-02-23 06:54:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
validate-options.js
1.18 KB
lrw-r--r--
2026-02-23 06:54:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).