is-server

Check if process is running in Nodejs

is-server

Check if process is running in Node.

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

MIT © Yoshua Wuyts