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

1.1.0 • Public • Published

fp-env

Functional Programming - Environment

Environment parser.

Example:

import { parseEnvironment } from 'fp-env'

const env = {
    "SETTING__ONE": '1',
    "SETTING__TWO": '2',
    "SETTING__SUB_SETTING__THREE": '3'
  }
expect(parseEnvironment(env)).toStrictEqual({
  setting: {
    one: '1',
    two: '2',
    subSetting: {
      three: '3'
    }
  }
})

Package Sidebar

Install

npm i fp-env

Weekly Downloads

0

Version

1.1.0

License

MIT

Unpacked Size

8.38 kB

Total Files

11

Last publish

Collaborators

  • garymcleanhall