0.0.2-b • Published 3 years ago

@kerimhudson/env v0.0.2-b

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

env

A simple environment variable wrapper for node. Uses dotenv under the hood to configure environment variables, and then provides a utility to easily access env variables and assign a fallback if necessary.

require('@kerimhudson/env').config()
import env from '@kerimhudson/env'

const port = env('port', 3000) // key and fallback
0.0.2-b

3 years ago

0.0.2-a

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago