env-var

Verification, sanitization, and type coercion for environment variables in Node.js

MIT License

Downloads
950.8K
Stars
578
Committers
26
env-var - 5.2.0

Published by evanshortiss almost 5 years ago

  • The required() function now verifies the variable is not an empty string
env-var - 5.1.0

Published by evanshortiss about 5 years ago

  • Ability to add custom accessors in PR #72 (thanks @todofixthis)
  • Improved TypeScript tests
  • Fixed warning generated by husky
env-var - 5.0.0

Published by evanshortiss over 5 years ago

  • Return values from asArray() are now more intuitive & consitent
  • asUrlString() and asUrlObjectnow use the built-in URL class in Node.js
    to perform validation
  • README updated in accordance with changes listed above
env-var - 4.1.0

Published by evanshortiss over 5 years ago

  • Add asPortNumber() function
  • Update documentation structure
env-var - 4.0.1

Published by evanshortiss over 5 years ago

  • Add node process.env typings to env.from
env-var - 4.0.0

Published by evanshortiss over 5 years ago

  • Rename .env.mock() to env.from()
  • Change module internals per issue #39
  • Update docs related to env.mock
env-var - 3.5.0

Published by evanshortiss over 5 years ago

  • Update required() to support boolean parameter to bypass the check
env-var - 3.4.2

Published by evanshortiss almost 6 years ago

  • Fix README badge copy/paste error
env-var - 3.4.1

Published by evanshortiss almost 6 years ago

  • Fix TypeScript definition for "asBoolStrict" function name
env-var - 3.4.0

Published by evanshortiss about 6 years ago

  • Add convertFromBase64() function
  • Enable Greenkeeper
env-var - 3.3.0

Published by evanshortiss over 6 years ago

  • Add asEnum functionality
env-var - 3.2.0

Published by evanshortiss over 6 years ago

  • Remove @types/node dependency
env-var - 3.1.0

Published by evanshortiss almost 7 years ago

  • Update typings to correctly handle default values for numeric types.
  • Ensure an error is thrown when asArray does not detect at least a single non-empty value.
env-var - 3.0.2

Published by evanshortiss about 7 years ago

  • restore support for browser based applications
env-var - 3.0.1

Published by evanshortiss about 7 years ago

  • Fix bug that caused default values to be ignored
env-var - 3.0.0

Published by evanshortiss about 7 years ago

  • Public API no longer is a function, instead exposes two functions, mock and get
  • Drop support for Node.js versions less than 4.0
  • Rename asPositiveInt to asIntPositive
  • Rename asNegativeInt to asIntNegative
  • Rename asStrictBool to asBoolStrict
  • Add asFloatPositive and asFloatNegative
  • Add asUrlString and asUrlObject
  • Refactor code with consistent errors and structure
  • Use standard for code quality and formatting
env-var - 2.4.3

Published by evanshortiss over 7 years ago

Update CI. Add Coveralls. Backdate changelog.

env-var - fix for typings

Published by evanshortiss almost 8 years ago

env-var - patch to remove unnecessary code path (fixes build)

Published by evanshortiss almost 8 years ago

env-var - add new methods asArray, asJsonArray, asJsonObject

Published by evanshortiss almost 8 years ago