envobj

Tiny environment variable helper, that I'll use in all my apps.

Downloads
934
Stars
25
Committers
4
envobj - Remove `Map` and `Set` Latest Release

Published by blakeembrey almost 5 years ago

Fixed

  • Remove Map and Set usage for old browsers
envobj - Require One `source`

Published by blakeembrey almost 5 years ago

Added

  • Require at least one source for envobj to work (via type definition)
envobj - Make `process.env` Explicit

Published by blakeembrey almost 5 years ago

Changed

  • Move to simple validator functions like string, boolean, number and integer
    • envvar had some issues with Error inheritance that caused stack issues
  • Require sources to be passed into the package explicitly
    • Allows non-node.js environments such as webpack and Cloudflare Workers (which may just pull from variables)
  • New error object
    • Shrinking overall dependency size by removing combine-errors and other error-related dependencies

Historical change log: History.md

Package Rankings
Top 5.06% on Npmjs.org
Badges
Extracted from project README
NPM version NPM downloads Build status Test coverage