Skip to content

A command line tool to re-align Twilio Flow widgets based on their transitions.

License

Notifications You must be signed in to change notification settings

SykesCottages/twilio-flow-format

Repository files navigation

twilio-flow-format

Are you tired of your flows looking like this?

before

What if you could make it look like this with the press of a button?

after

What does it do?

  • Formats Twilio flow json files to have consistent x & y values for every widget based on hierarchy.
  • It works by creating a tree structure with unifiedjs to link every node then puts each node on a level (y) and column (x) with some whitespace.

Install

bun install

Run

bun run format <absolute file path to flow json file>
  • Outputs to a file ./output.json
  • Output will put json all on 1 line, just put it into any editor and use the built-in whitespace formater and your diff should only show x & y changes.

About

A command line tool to re-align Twilio Flow widgets based on their transitions.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published