{"id":17448473,"url":"https://github.com/ahstro/elm-luhn","last_synced_at":"2025-03-30T11:26:42.121Z","repository":{"id":57674751,"uuid":"116008646","full_name":"ahstro/elm-luhn","owner":"ahstro","description":"Validate numbers using the Luhn algorithm","archived":false,"fork":false,"pushed_at":"2020-03-18T17:24:59.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-05T13:20:00.396Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://package.elm-lang.org/packages/ahstro/elm-luhn/latest","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/ahstro.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":"2018-01-02T11:33:27.000Z","updated_at":"2024-05-08T09:05:12.000Z","dependencies_parsed_at":"2022-09-02T17:08:55.958Z","dependency_job_id":null,"html_url":"https://github.com/ahstro/elm-luhn","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/ahstro%2Felm-luhn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahstro%2Felm-luhn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahstro%2Felm-luhn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahstro%2Felm-luhn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahstro","download_url":"https://codeload.github.com/ahstro/elm-luhn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246310497,"owners_count":20756946,"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-10-17T20:11:00.804Z","updated_at":"2025-03-30T11:26:42.099Z","avatar_url":"https://github.com/ahstro.png","language":"Elm","funding_links":[],"categories":[],"sub_categories":[],"readme":"# elm-luhn\n\nValidate numbers using the [Luhn algorithm](https://en.wikipedia.org/wiki/Luhn_algorithm). Can be used when writing e.g. validators for credit cards or other numbers that use the Luhn algorithm for basic validation.\n\n## Installation\n\n```sh\nelm-package install ahstro/elm-luhn\n```\n\n## Usage\n\n```elm\nimport Luhn\n\nif Luhn.isValid \"1234567812345670\"\n  \"Yay\"\nelse\n  \"Nay\"\n\n\ncase Luhn.validate \"1234567812345670\" of\n    Ok numberString -\u003e\n        numberString ++ \" is valid\" -- \"1234567812345670 is valid\"\n    Err error -\u003e\n        error\n```\n\nMore examples are available in the [/tests](https://github.com/ahstro/elm-luhn/tree/master/tests) folder.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahstro%2Felm-luhn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahstro%2Felm-luhn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahstro%2Felm-luhn/lists"}