Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

in-window

kristoferjoseph8Apache-2.02.0.0

test whether in browser

window, test, browse

readme

in-window

function that tells you if the global window object exists.

install

npm i in-window --save

usage

var inWindow = require('in-window')

inWindow && window.document.querySelector('.thing')