is-frontend
A utility to check if you are on the frontend in an isomorphic js app
Installation
npm install is-frontend
Usage
var isFrontend = require('is-frontend');
if (isFrontend()) {
// safe to access window
}
A utility to check if you are on the frontend in an isomorphic js app
A utility to check if you are on the frontend in an isomorphic js app
npm install is-frontend
var isFrontend = require('is-frontend');
if (isFrontend()) {
// safe to access window
}
A utility to check if you are on the frontend in an isomorphic js app