1.0.2 • Published 9 years ago

check-client v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

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')
1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago