is-node

Returns true if it's running on NodeJS

On server:

require('is-node')
// => true 

On client-side

require('is-node')
// => false