node package manager
Loosely couple your services. Use Orgs to version and reuse your code. Create a free org »

isserver

isServer

Check if process is running in Node.

API

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

License

MIT © Yoshua Wuyts