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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.4.5
    2
    • latest

Version History

Package Sidebar

Install

npm i environs

Weekly Downloads

3

Version

0.4.5

License

MIT

Last publish

Collaborators

  • markthethomas