Commit 5e178a2

Anton Medvedev <anton@medv.io>
2024-10-18 23:58:12
Update api.md gh-pages
1 parent 9192439
Changed files (1)
api.md
@@ -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.