node package manager

isserver

Check if process is running in Nodejs

isServer

Check if process is running in Node.

API

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

License

MIT © Yoshua Wuyts