Check if process is running in Node.
var detect = require('isServer'); detect();// -> true in node// -> false in browser
MIT © Yoshua Wuyts
npm i isserver
2
0.0.1
MIT
github.com
4 years ago
test in your browser