{"id":18347646,"url":"https://github.com/ghivert/elm-data-dumper","last_synced_at":"2025-07-30T14:37:34.839Z","repository":{"id":87233899,"uuid":"98571876","full_name":"ghivert/elm-data-dumper","owner":"ghivert","description":"Dump data structure easily in Elm!","archived":false,"fork":false,"pushed_at":"2018-06-21T14:30:15.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-15T14:47:35.071Z","etag":null,"topics":["data-structures","elm","formatter"],"latest_commit_sha":null,"homepage":"http://package.elm-lang.org/packages/ghivert/elm-data-dumper/latest","language":"Elm","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ghivert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-27T19:13:35.000Z","updated_at":"2018-06-21T14:30:16.000Z","dependencies_parsed_at":"2023-03-13T19:37:43.101Z","dependency_job_id":null,"html_url":"https://github.com/ghivert/elm-data-dumper","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghivert%2Felm-data-dumper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghivert%2Felm-data-dumper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghivert%2Felm-data-dumper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghivert%2Felm-data-dumper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ghivert","download_url":"https://codeload.github.com/ghivert/elm-data-dumper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248127812,"owners_count":21052293,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data-structures","elm","formatter"],"created_at":"2024-11-05T21:14:35.139Z","updated_at":"2025-04-09T23:25:56.689Z","avatar_url":"https://github.com/ghivert.png","language":"Elm","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Elm Data Dumper\n\nThis package provides facilities to dump data structures in HTML.\nContrary to `Debug.log`, which dump everything to the console, Data.Dumper give colors to the output, and format to be easier to read.\nYou just have to code the dumper when making your structure, and yay! You can dump freely data structures in HTML!\n\n# An Example?\n\n```elm\nimport Html exposing (Html)\n\ntype alias Location =\n  { host : String\n  , hostname : String\n  , protocol : String\n  }\n\ntype Locations\n  = Nowhere\n  | Loc Location\n\ndumpLocation : Location -\u003e Html msg\ndumpLocation =\n  dumpRecord \"Location\"\n    [ (\"host\", .host \u003e\u003e dumpString)\n    , (\"hostname\", .hostname \u003e\u003e dumpString)\n    , (\"protocol\", .protocol \u003e\u003e dumpString)\n    ]\n\ndumpNestedLocation : Location -\u003e Html msg\ndumpNestedLocation =\n  dumpNestedRecord 1\n    [ (\"host\", .host \u003e\u003e dumpString)\n    , (\"hostname\", .hostname \u003e\u003e dumpString)\n    , (\"protocol\", .protocol \u003e\u003e dumpString)\n    ]\n\ndumpLocations : Locations -\u003e Html msg\ndumpLocations locations =\n  dumpUnion \"Locations\" \u003c|\n    case locations of\n      Nowhere -\u003e\n        (\"Nowhere\", Html.text \"\")\n      Loc location -\u003e\n        (\"Loc\", dumpNestedLocation location)\n\nmain : Html msg\nmain =\n  let example = Location \"host_\" \"hostname_\" \"protocol_\" in\n  Html.div []\n    [ dumpLocation example\n    , dumpLocations Nowhere\n    , dumpLocations \u003c| Loc example\n    ]\n```\n\nTurn into this:\n\n![Formatted text in HTML](./assets/pictures/readme-screenshot.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghivert%2Felm-data-dumper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghivert%2Felm-data-dumper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghivert%2Felm-data-dumper/lists"}