We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0ffc36 commit b92e0ccCopy full SHA for b92e0cc
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "browser-or-node",
3
- "version": "3.0.0",
+ "version": "3.0.0-pre.0",
4
"description": "Check in which environment the code is running - browser/node.js/webworker/jsdom/deno",
5
"main": "./dist/index.js",
6
"module": "./dist/index.mjs",
src/index.ts
@@ -1,7 +1,7 @@
const isBrowser: boolean =
typeof window !== "undefined" && typeof window.document !== "undefined";
-const isNode =
+const isNode: boolean =
// @ts-expect-error
typeof process !== "undefined" &&
7
0 commit comments