@chronark/env
TypeScript icon, indicating that this package has built-in type declarations

0.1.3-rc.1 • Public • Published

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) 

Readme

Keywords

none

Package Sidebar

Install

npm i @chronark/env

Weekly Downloads

1

Version

0.1.3-rc.1

License

MIT

Unpacked Size

28.2 kB

Total Files

23

Last publish

Collaborators

  • chronark