Skip to content

Commit

Permalink
Update api.md
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmedv authored Oct 18, 2024
1 parent 9192439 commit 5e178a2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,12 @@ The [which](https://github.com/npm/node-which) package.
const node = await which('node')
```

If nothrow option is used, returns null if not found.

```js
const pathOrNull = await which('node', { nothrow: true })
```

## ps()

The [@webpod/ps](https://github.com/webpod/ps) package to provide a cross-platform way to list processes.
Expand Down

0 comments on commit 5e178a2

Please sign in to comment.