node package manager

is-client

is-client

Check if process is running in Node.

API

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

License

MIT © Yoshua Wuyts