Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

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

install

npm i environs

Downloadsweekly downloads

62

version

0.4.5

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability