debug-flow
v1.0.5
Published
Debugging utility for lodash/fp flow (pipe) and compose (backflow, flowRight)
Downloads
38
Maintainers
Readme
debug-flow
Debugging utility for lodash/fp flow (pipe) and compose (backflow, flowRight)
Usage
// change your code from this:
const nameDan = flow([
set('name', 'Dan')
]);
// to this:
const nameDan = debug(flow)({ label: 'nameDan', break: true })([
set('name', 'Dan')
]);
Options
- break (boolean) Break on each statement to evaluate in the console
- label (string) Give a name to the flow to use in it's logs
Credits
- @morsdyce for coming up with the idea for this package and implementing the POC
- 500Tech for sponsoring the development of this package