{"id":13507287,"url":"https://github.com/ma2gedev/luhn_ex","last_synced_at":"2025-04-23T02:51:10.410Z","repository":{"id":34334023,"uuid":"38254088","full_name":"ma2gedev/luhn_ex","owner":"ma2gedev","description":"Luhn algorithm in Elixir","archived":false,"fork":false,"pushed_at":"2023-01-04T12:56:18.000Z","size":32,"stargazers_count":16,"open_issues_count":1,"forks_count":12,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T13:43:35.199Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/ma2gedev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-29T15:09:12.000Z","updated_at":"2023-04-11T02:41:18.000Z","dependencies_parsed_at":"2023-01-15T06:23:14.361Z","dependency_job_id":null,"html_url":"https://github.com/ma2gedev/luhn_ex","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/ma2gedev%2Fluhn_ex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ma2gedev%2Fluhn_ex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ma2gedev%2Fluhn_ex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ma2gedev%2Fluhn_ex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ma2gedev","download_url":"https://codeload.github.com/ma2gedev/luhn_ex/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250360248,"owners_count":21417717,"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-08-01T02:00:30.042Z","updated_at":"2025-04-23T02:51:10.376Z","avatar_url":"https://github.com/ma2gedev.png","language":"Elixir","funding_links":[],"categories":["Algorithms and Data structures"],"sub_categories":[],"readme":"# Luhn algorithm in Elixir\n\n[![hex.pm version](https://img.shields.io/hexpm/v/luhn.svg)](https://hex.pm/packages/luhn)\n[![hex.pm daily downloads](https://img.shields.io/hexpm/dd/luhn.svg)](https://hex.pm/packages/luhn)\n[![hex.pm weekly downloads](https://img.shields.io/hexpm/dw/luhn.svg)](https://hex.pm/packages/luhn) \n[![hex.pm downloads](https://img.shields.io/hexpm/dt/luhn.svg)](https://hex.pm/packages/luhn)\n[![Build Status](https://github.com/ma2gedev/luhn_ex/workflows/Elixir%20CI/badge.svg?branch=master)](https://github.com/ma2gedev/luhn_ex/actions?query=workflow%3A%22Elixir+CI%22)\n\nValidate Luhn number.\n\n## Installation\n\n```elixir\n# mix.exs\ndefp deps do\n  [\n    {:luhn, \"~\u003e 0.3.0\"}\n  ]\nend\n```\n\nand fetch\n```bash\n$ mix deps.get\n```\n\n## How to use\n\n```elixir\n# validate number\nLuhn.valid? \"378282246310005\"\n# =\u003e true\n\n# Integer type number\nLuhn.valid? 378282246310005\n# =\u003e true\n```\n\n## Benchmarking\n\n```bash\n$ MIX_ENV=bench mix deps.get\n$ MIX_ENV=bench mix compile\n$ mix bench\n```\n\n## Author\n\nTakayuki Matsubara (@ma2ge on twitter)\n\n## LICENSE\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fma2gedev%2Fluhn_ex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fma2gedev%2Fluhn_ex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fma2gedev%2Fluhn_ex/lists"}