env-var-fp
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

env-var-fp

Functional utility for parsing env variables

Usage

import { env, requires } from 'env-var-fp';
import { defaultTo } from 'lodash/fp';
 
// Throws exception
env(requires)('UNDEFINED_VAR')
 
// Returns 2
env(defaultTo('2'), parseFloat)('UNDEFINED_VAR')

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i env-var-fp

Weekly Downloads

633

Version

1.0.0

License

MIT

Unpacked Size

9.31 kB

Total Files

9

Last publish

Collaborators

  • pawsong