This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
toElmFormatString adds newlines and tabulation to toString
version 1.0.2
license BSD3
native-modules False
elm-version 0.18.0 <= v < 0.19.0
Tag 1.0.3
Committed At 2017-11-28 00:40:35 UTC
elm-lang/html 2.0.0 <= v < 3.0.0 2.0.0
elm-lang/core 5.1.1 <= v < 6.0.0 5.1.1

README

to-elm-format-string

Deprecated: AaronCZim/to-multiline-string supports strings better, but it uses native javascript code, so it can't be published.

A quick way to see the model as your programs run. There is only one function, toElmFormatString which turns data into a formatted string with newlines and indentation so you can easily read your model's value.

Just add the line:

Html.pre [][ model |> toElmFormatString |> Html.text ]

to the end of your view function and you'll never wonder what the value of your model is again.