0.1.3-rc.1 • Published 2 years ago

@chronark/env v0.1.3-rc.1

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

2 years ago

0.1.3-rc.1

2 years ago

0.1.2-rc.1

2 years ago

0.1.0

3 years ago

0.1.1

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago