{"id":20460967,"url":"https://github.com/ericgj/elm-csv-decode","last_synced_at":"2025-04-13T06:16:08.597Z","repository":{"id":57675070,"uuid":"95463872","full_name":"ericgj/elm-csv-decode","owner":"ericgj","description":"Decode CSV records to types","archived":false,"fork":false,"pushed_at":"2018-10-15T21:36:33.000Z","size":10,"stargazers_count":2,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T06:15:53.468Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elm","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ericgj.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}},"created_at":"2017-06-26T15:55:15.000Z","updated_at":"2018-11-22T18:05:53.000Z","dependencies_parsed_at":"2022-09-02T17:08:41.568Z","dependency_job_id":null,"html_url":"https://github.com/ericgj/elm-csv-decode","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericgj%2Felm-csv-decode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericgj%2Felm-csv-decode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericgj%2Felm-csv-decode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericgj%2Felm-csv-decode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericgj","download_url":"https://codeload.github.com/ericgj/elm-csv-decode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248670438,"owners_count":21142905,"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":[],"created_at":"2024-11-15T12:22:39.734Z","updated_at":"2025-04-13T06:16:08.562Z","avatar_url":"https://github.com/ericgj.png","language":"Elm","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Csv.Decode\n\nCSV decoding, heavily inspired by [url-parser][].\n\nNote this library does not include an underlying CSV parser. It assumes you \nare using something like [periodic/elm-csv][periodic] or \n[lovasoa/elm-csv][lovasoa] to get from `String` to `Csv`, where \n`Csv` is:\n\n    type alias Csv =\n      { headers : List String\n      , records : List (List String)\n      }\n\nThis library gets you the rest of the way, to a list of your own types. It also\ncollects errors together with the index of the record they occurred on.\n\nYou can think of this as analogous to `Json.Decode`. It lets you declaratively\nconvert data from an intermediate representation (`Json.Value` or `Csv`) into\nyour own types.\n\n\n## Basic usage\n\nUsing `periodic/elm-csv` (which returns a `Result (List String) Csv`):\n\n    Csv.parse rawData |\u003e Csv.Decode.decode myDecoder\n\nUsing `lovasoa/elm-csv` (which returns a plain `Csv`):\n\n    Csv.parse rawData |\u003e Csv.Decode.decodeCsv myDecoder\n\nYou can define decoders based on field position or on header name. See \nexamples in the docs.\n\n[url-parser]: https://github.com/evancz/url-parser\n\n[periodic]: https://github.com/periodic/elm-csv\n\n[lovasoa]: https://github.com/lovasoa/elm-csv\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericgj%2Felm-csv-decode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericgj%2Felm-csv-decode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericgj%2Felm-csv-decode/lists"}