node package manager
Easy sharing. Manage teams and permissions with one click. 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