From e7f32442123cb553d36118644996ea33f43d4d51 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Fri, 22 Dec 2023 10:28:36 +0100 Subject: [PATCH] docs: clarify `isNode` flag behavior --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 776c030..dfac3a1 100644 --- a/README.md +++ b/README.md @@ -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`