Check if process is running in Nodejs
Check if process is running in Node.
var detect = require('isServer'); detect();// -> true in node// -> false in browser
MIT © Yoshua Wuyts
Of course you’re getting around to it, but you probably should get around to it soon. Buy a ticket »
how? learn more