Module to format Elm Records

elm-package install ryan-senn/elm-record-formatter 1.0.0


Elm Record Formatter

This Module comes in handy if you want to print an Elm Record to the screen. It parses any Record into a String then adds indentation and line breaks to make it readable. You'll typically want to use it in a <pre> tag. Bundled with syntax highlighting, you can achieve nice results.



It is also used by the stellar-sdk demo page after submitting a REST call. The server sends a json response, it gets Decoded into Elm Records and this package is then used to print the response to the screen.