Skip to content

Commit

Permalink
docs: mention halt and run API (#1046)
Browse files Browse the repository at this point in the history
closes #961
  • Loading branch information
antongolub authored Dec 30, 2024
1 parent b90eab3 commit 2bf873d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/process-promise.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,16 @@ The `$` returns a `ProcessPromise` instance. When resolved, it becomes a [`Proce

```js
const p = $`command` // ProcessPromise

const o = await p // ProcessOutput
```

By default, `$` spawns a new process immediately, but you can delay the start to trigger in manually.

```ts
const p = $({halt: true})`command`
const o = await p.run()
```

## `stdin`

Returns a writable stream of the stdin process. Accessing
Expand Down

0 comments on commit 2bf873d

Please sign in to comment.