node package manager
Don’t reinvent the wheel. Reuse code within your team. Create a free org »

is-server

is-server

Check if process is running in Node.

API

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

License

MIT © Yoshua Wuyts