Skip to content

runCommand JavaScript

Requires a Node.js runtime ('qsu/node')

It returns the result that is output after entering and executing the command prompt command.

Parameters

  • command::string

Returns

string | null

Examples

javascript
console.log(await runCommand('echo a')); // Returns 'a'

Released under the MIT License