{"id":22388415,"url":"https://github.com/webdeveric/validation-algorithms","last_synced_at":"2026-02-02T09:44:02.812Z","repository":{"id":265936231,"uuid":"896895767","full_name":"webdeveric/validation-algorithms","owner":"webdeveric","description":"Various validation algorithms","archived":false,"fork":false,"pushed_at":"2024-12-18T23:37:48.000Z","size":246,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-20T18:48:01.228Z","etag":null,"topics":["luhn","luhn-algorithm"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/validation-algorithms","language":"TypeScript","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/webdeveric.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["webdeveric"]}},"created_at":"2024-12-01T15:14:51.000Z","updated_at":"2024-12-18T23:37:22.000Z","dependencies_parsed_at":"2024-12-01T17:01:02.801Z","dependency_job_id":"85670798-7f10-4966-b9d6-024d50352878","html_url":"https://github.com/webdeveric/validation-algorithms","commit_stats":null,"previous_names":["webdeveric/validation-algorithms"],"tags_count":1,"template":false,"template_full_name":"webdeveric/dual-ts-package-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdeveric%2Fvalidation-algorithms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdeveric%2Fvalidation-algorithms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdeveric%2Fvalidation-algorithms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdeveric%2Fvalidation-algorithms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webdeveric","download_url":"https://codeload.github.com/webdeveric/validation-algorithms/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236611919,"owners_count":19177017,"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":["luhn","luhn-algorithm"],"created_at":"2024-12-05T02:13:49.165Z","updated_at":"2025-10-15T13:31:24.596Z","avatar_url":"https://github.com/webdeveric.png","language":"TypeScript","readme":"# `validation-algorithms`\n\n[![Node.js CI](https://github.com/webdeveric/validation-algorithms/actions/workflows/node.js.yml/badge.svg)](https://github.com/webdeveric/validation-algorithms/actions/workflows/node.js.yml) [![Release](https://github.com/webdeveric/validation-algorithms/actions/workflows/release.yml/badge.svg)](https://github.com/webdeveric/validation-algorithms/actions/workflows/release.yml)\n\n## Install\n\n`pnpm add validation-algorithms`\n\n`npm install validation-algorithms --save`\n\n`yarn add validation-algorithms`\n\n## Algorithms\n\n### [Luhn](https://en.wikipedia.org/wiki/Luhn_algorithm)\n\n```ts\nimport { luhn } from 'validation-algorithms/luhn';\n\nif (luhn('4000000000001000')) {\n  // passed validation\n}\n```\n\n## Benchmarks\n\nRun `pnpm bench` to run the benchmarks.\n\n![image](https://github.com/user-attachments/assets/d53187d3-2117-47fa-9d08-ad7978e8c2e4)\n","funding_links":["https://github.com/sponsors/webdeveric"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdeveric%2Fvalidation-algorithms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebdeveric%2Fvalidation-algorithms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdeveric%2Fvalidation-algorithms/lists"}