0.0.2-b • Published 4 years ago

@kerimhudson/env v0.0.2-b

Weekly downloads
-
License
MIT
Repository
github
Last release
4 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

4 years ago

0.0.2-a

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago