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 }