{"id":15059735,"url":"https://github.com/jinjor/elm-csv-decode","last_synced_at":"2025-04-10T05:41:07.165Z","repository":{"id":62418605,"uuid":"98723180","full_name":"jinjor/elm-csv-decode","owner":"jinjor","description":"CSV decoder for Elm","archived":false,"fork":false,"pushed_at":"2017-08-01T01:29:40.000Z","size":23,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T06:54:37.415Z","etag":null,"topics":["csv","decoder","elm","elm-lang"],"latest_commit_sha":null,"homepage":"http://package.elm-lang.org/packages/jinjor/elm-csv-decode/latest/CsvDecode","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/jinjor.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-07-29T09:39:52.000Z","updated_at":"2023-11-27T01:03:18.000Z","dependencies_parsed_at":"2022-11-01T16:48:32.244Z","dependency_job_id":null,"html_url":"https://github.com/jinjor/elm-csv-decode","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/jinjor%2Felm-csv-decode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinjor%2Felm-csv-decode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinjor%2Felm-csv-decode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinjor%2Felm-csv-decode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jinjor","download_url":"https://codeload.github.com/jinjor/elm-csv-decode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248166189,"owners_count":21058475,"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":["csv","decoder","elm","elm-lang"],"created_at":"2024-09-24T22:47:07.316Z","updated_at":"2025-04-10T05:41:07.142Z","avatar_url":"https://github.com/jinjor.png","language":"Elm","readme":"elm-csv-decode\n====\n\n[![Build Status](https://travis-ci.org/jinjor/elm-csv-decode.svg)](https://travis-ci.org/jinjor/elm-csv-decode)\n\nA CSV decoder for Elm. This library internally uses [lovasoa/elm-csv](http://package.elm-lang.org/packages/lovasoa/elm-csv/latest) for parsing. If you want to know how it parses CSV, visit it.\n\n```elm\n-- Now we are going to decode each record as User type.\ntype alias User =\n    { id : String\n    , name : String\n    , age : Int\n    , mail : Maybe String\n    }\n\n\n-- You define decoder with type `Decoder User`\nuserDecoder : Decoder User\nuserDecoder =\n    succeed User\n        |= field \"id\"\n        |= field \"name\"\n        |= int (field \"age\")\n        |= optional (field \"mail\")\n\n\n-- This is the source formed of CSV.\nsource : String\nsource =\n    \"\"\"\nid,name,age,mail\n1,John Smith,20,john@example.com\n2,Jane Smith,19,\n\"\"\"\n\n\n-- Run decoder.\n\u003e CsvDecode.run userDecoder source\nOk\n    [ { id = \"1\", name = \"John Smith\", age = 20, mail = Just \"john@example.com\" }\n    , { id = \"2\", name = \"Jane Smith\", age = 19, mail = Nothing }\n    ]\n```\n\nPipeline interface is inspired by [elm-tools/parser](http://package.elm-lang.org/packages/elm-tools/parser/latest/Parser).\n\n\n## LICENSE\n\nBSD-3-Clause\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjinjor%2Felm-csv-decode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjinjor%2Felm-csv-decode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjinjor%2Felm-csv-decode/lists"}