is-node

Returns true if it's running on NodeJS

npm install is-node
1 downloads in the last day
19 downloads in the last week
108 downloads in the last month

is-node

On server:

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

On client-side

require('is-node')
// => false
npm loves you