We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea20f57 commit 1e7dad2Copy full SHA for 1e7dad2
README.md
@@ -16,6 +16,8 @@ $ npm i -S tinyexec
16
A process can be spawned and awaited like so:
17
18
```ts
19
+import {x} from 'tinyexec';
20
+
21
const result = await x('ls', ['-l']);
22
23
// result.stdout - the stdout as a string
@@ -25,6 +27,8 @@ const result = await x('ls', ['-l']);
25
27
You may also iterate over the lines of output via an async loop:
26
28
29
30
31
32
const result = x('ls', ['-l']);
33
34
for await (const line of result) {
0 commit comments