1.0.2 • Published 9 years ago
check-client v1.0.2
check-client
npm install --save check-client
then import client from 'check-client'
Now you if you use client()
it return true if running on client, and false if running on node.js server.
useful when you are trying to do server-side rendering, for example,
if(client())
require('./main.scss')