Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 566 Bytes

README.md

File metadata and controls

29 lines (19 loc) · 566 Bytes

@octo-utils/exec-async

exec

import { exec } from "../index.js"

exec("node -v").then(console.log) // 13.5.0

spwan

import { spawn } from "../index.js"

spawn("node", ["-v"]).then(console.log) // 13.5.0

spwan (inherit stdout)

inherit stdout from the master process Notice. stdoutInherit: true makes childprocess alwasy return null.

import { spawn } from "../index.js"

spawn("node", ["-e", "console.log(require('tty').isatty(1))"], { stdoutInherit: true }).then(console.log) // null
// true