mirror of
https://github.com/github/codeql.git
synced 2026-04-11 18:14:01 +02:00
10 lines
300 B
JavaScript
10 lines
300 B
JavaScript
const cp = require('child_process');
|
|
|
|
cp.execFile("node", ["--version"], cb);
|
|
cp.execFileSync("sh", ["-c", "node --version"]);
|
|
cp.fork("foo", ["arg"]);
|
|
cp.spawn("echo", ["Hi"], cb);
|
|
cp.spawnSync("echo", ["Hi", "there"]);
|
|
|
|
// dynamic import
|
|
await import('data:text/javascript,console.log("hello!");') |