1.0.5 • Published 7 years ago

debug-flow v1.0.5

Weekly downloads
5
License
MIT
Repository
-
Last release
7 years ago

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