is-node

Returns true if it's running on NodeJS

npm install is-node
10 downloads in the last day
24 downloads in the last week
118 downloads in the last month

is-node

On server:

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

On client-side

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