isismorph
v0.1.2
Published
Tiny module for checking enviroment
Downloads
2
Readme
isismorph
Tiny module for checking enviroment
API
var isismorph = require('isismorph');
// Node enviroment
isismorph.isNode() // => true
isismorph.isBrowser() // => false
isismorph.isWebWorker() // => false
// Browser enviroment
isismorph.isNode() // => false
isismorph.isBrowser() // => true
isismorph.isWebWorker() // => false
// WebWorker enviroment
isismorph.isNode() // => false
isismorph.isBrowser() // => false
isismorph.isWebWorker() // => true