fp-env
v1.1.0
Published
Functional environment variable parser.
Downloads
1
Maintainers
Readme
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'
}
}
})