Skip to content
FullStackForgerPublic

About

Environment checks for isomorphic(universal) js apps

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

30 Commits

Folders and files

Repository files navigation

Everse

Build Status Coverage Status Code Climate Codacy Badge npm
dependencies Status devDependencies Status peerDependencies Status

enverse

Environment checks for isomorphic apps

Enverse is super simple library providing some environment checks usefull in isomorphic (universal) application development.
It has tiny footprint and no external dependencies.

Example

import env from `enverse`

if (env.is.browser) {
    // do some browser stuff
} else {
    // do some server stuff
}

Checks

Default everse object exposes is and has properties with following checks. All bellow keys return Boolean values.

  • is.browser
  • is.server
  • has.document
  • has.navigator
  • has.localStorage
  • has.sessionStorage
  • has.global
  • has.process

What next?

There is no futher plan of action if you however have an idea please feel free to submit an issue.

Enjoy!

About

Environment checks for isomorphic(universal) js apps

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages