1.0.0 • Published 5 years ago
in-browser-env v1.0.0
inBrowserEnv
Uses this repo as a base.
inBrowserEnv is a way to check if a process is running in node or in the browser. This is useful when using frameworks like Nextjs or GatsbyJS.
Usage
Install
npm i in-browser-env --save
yarn add in-browser-env
In Code
import inBrowserEnv from "in-browser-env"
if (isBrowserEnv()) {
// in a browser environment
}
1.0.0
5 years ago
0.0.0-development
5 years ago