environs
v0.4.5
Published
Simple tools for determining environment in node
Downloads
14
Maintainers
Readme
env
Helper methods for determining environment.
- env
- static
- inner
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 |