This commit is contained in:
Jarred Sumner
2024-06-26 18:07:19 -07:00
parent cab78045b7
commit 10ce5ddd24

View File

@@ -16,7 +16,7 @@ await proc.exited;
The second argument accepts a configuration object.
```ts
const proc = Bun.spawn("echo", ["Hello, world!"], {
const proc = Bun.spawn(["echo", "Hello, world!"], {
cwd: "/tmp",
env: { FOO: "bar" },
onExit(proc, exitCode, signalCode, error) {