node package manager
We need your input. Help make JavaScript better: Take the 2017 JavaScript Ecosystem survey »

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