0.1.3-rc.1 • Published 3 years ago

@chronark/env v0.1.3-rc.1

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

env

Utility library to load and require environment variables to be set

Quickstart

import { env } from "@chronark/env"


// this will throw an error if `HOST` is not a defined environment variable
const host = env.require("HOST")


// this will instead use the provided default value
const port = env.get("PORT", 3000) 
0.1.2

4 years ago

0.1.3-rc.1

3 years ago

0.1.2-rc.1

4 years ago

0.1.0

4 years ago

0.1.1

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago