This simple Elm package formats numbers as pretty strings. It is flexible enough to deal with different number of decimals, different thousand separators and diffetent decimal separator.
The API is extensively documented with numerous examples.
See this package's page on elm-lang.org: http://package.elm-lang.org/packages/lovasoa/elm-format-number/latest/FormatNumber
This package uses elm-doc-test: All the exemples in the documentation are automatically tested and are guaranted to be correct.
$ npm install
$ npm test