isserver

Check if process is running in Nodejs

isServer

Check if process is running in Node.

var detect = require('isServer');
 
detect();
// -> true in node
// -> false in browser

MIT © Yoshua Wuyts