pambda-by-env
Pambda switching by env.
Installation
npm i pambda-by-env
Usage
;;const handler =;
env(name, truePambda, falsePambda)
name
- A name of environment variable for switching.
truePambda
- A pambda when an environment variable is true.
- If this argument is an object, a pambda of the property corresponding to the environment variable is called.
falsePambda
- A pambda when an environment variable is false.
Undefined, emptry string, 'no' and 'false' are evaluated as false
.
License
MIT