environs

0.4.5 • Public • Published

env

Helper methods for determining environment.

env.RELEASE : String

Detect release environment

Kind: static constant of env

env.PRODUCTION : String

Detect production environment

Kind: static constant of env

env.TESTING : String

Detect testing environment

Kind: static constant of env

env.CI : String

Detect dev environment

Kind: static constant of env

env.DEV : String

Detect dev environment

Kind: static constant of env

env.VERSION : string

Returns version

Kind: static constant of env

env~getEnv(env) ⇒ any

Get an environment variable

Kind: inner method of env
Returns: any - returns variable

Param Type Description
env string var to get

env~SET_PROJECT_VERSION(version)

Set up the global project path

Kind: inner method of env

Param Type Description
version string string path

Dependents (0)

Package Sidebar

Install

npm i environs

Weekly Downloads

4

Version

0.4.5

License

MIT

Last publish

Collaborators

  • markthethomas