Enverse is super simple library providing some environment checks usefull in isomorphic (universal) application development.
It has tiny footprint and no external dependencies.
import env from `enverse`
if (env.is.browser) {
// do some browser stuff
} else {
// do some server stuff
}
Default everse object exposes is and has properties with following checks.
All bellow keys return Boolean values.
is.browseris.serverhas.documenthas.navigatorhas.localStoragehas.sessionStoragehas.globalhas.process
There is no futher plan of action if you however have an idea please feel free to submit an issue.
