We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef515ff commit 78e741aCopy full SHA for 78e741a
README.md
@@ -50,11 +50,11 @@ await run(`python -c 'print("Hello, World!")'`);
50
// ^^ executes via `/bin/sh` (so quoting and that work as expected)
51
```
52
53
-Capturing stdout is easy:
+Capture stdout easily:
54
55
```ts
56
const { stdout } = await run(`ruby -e 'puts ", World!"'`, { stdout: true });
57
-console.log("Hello,", code);
+console.log("Hello,", stdout);
58
59
60
> `{ stderr: true }` also works.
@@ -74,7 +74,7 @@ Need a specific version of something? [tea][tea/cli] can install any version
74
of any package:
75
76
77
-await run("node^16 -e 'console.log(process.version)'");
+await run(["node^16", "-e", "console.log(process.version)"]);
78
// => v16.18.1
79
80
0 commit comments