Skip to content

Commit

Permalink
docs: clarify isNode flag behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Dec 22, 2023
1 parent 3250631 commit e7f3244
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ console.log(runtimeInfo);

You can also use individual named exports for each runtime detection:

> **Note**
> When Bun and Deno run in Node.js compatibility mode, `isNode` flag will be true. Use `runtime==="node"` if you need explicit check.
- `isNetlify`
- `isEdgeLight`
- `isWorkerd`
Expand Down

0 comments on commit e7f3244

Please sign in to comment.