node package manager
Easy collaboration. Discover, share, and reuse code in 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