Submit
Path:
~
/
/
usr
/
lib
/
node_modules
/
npm
/
node_modules
/
cross-spawn
/
lib
/
util
/
File Content:
escapeCommand.js
'use strict'; var escapeArgument = require('./escapeArgument'); function escapeCommand(command) { // Do not escape if this command is not dangerous.. // We do this so that commands like "echo" or "ifconfig" work // Quoting them, will make them unaccessible return /^[a-z0-9_-]+$/i.test(command) ? command : escapeArgument(command, true); } module.exports = escapeCommand;
Submit
FILE
FOLDER
Name
Size
Permission
Action
escapeArgument.js
875 bytes
0644
escapeCommand.js
391 bytes
0644
hasEmptyArgumentBug.js
431 bytes
0644
readShebang.js
894 bytes
0644
resolveCommand.js
805 bytes
0644
N4ST4R_ID | Naxtarrr