@mcrowe/envy

Environment variable tools for node.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@mcrowe/envy
100.0.25 years ago5 years agoMinified + gzip package size for @mcrowe/envy in KB

Readme

envy
Typesafe environment variable tools for node.

Usage

npm install @mcrowe/envy --save

import envy from '@mcrowe/envy'

const port = envy.int('PORT', 'Port to listen on')
const DB_URL = env.string('DB_URL', 'Database connection URL')
// ...

Development

Install npm modules:
npm install

Run tests:
npm test

Release

Release a new version:
bin/release.sh

This will publish a new version to npm, as well as push a new tag up to github.