░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
pplmvsvm
LOCATION:
/usr/lib/node_modules/npm/node_modules/cross-spawn/lib/util
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: readShebang.js
'use strict'; const fs = require('fs'); const shebangCommand = require('shebang-command'); function readShebang(command) { // Read the first 150 bytes from the file const size = 150; const buffer = Buffer.alloc(size); let fd; try { fd = fs.openSync(command, 'r'); fs.readSync(fd, buffer, 0, size, 0); fs.closeSync(fd); } catch (e) { /* Empty */ } // Attempt to extract shebang (null is returned if not a shebang) return shebangCommand(buffer.toString()); } module.exports = readShebang;
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 escape.js
JS
1.1 KB
2023-09-24 03:45
EDIT
📄 readShebang.js
JS
549 B
2023-09-24 03:45
EDIT
📄 resolveCommand.js
JS
1.5 KB
2023-09-24 03:45
EDIT