{"id":16439045,"url":"https://github.com/ianaya89/luhn-cc","last_synced_at":"2025-11-18T14:38:47.978Z","repository":{"id":75470084,"uuid":"70662556","full_name":"ianaya89/luhn-cc","owner":"ianaya89","description":"💳 ✅ ❌ JavaScript library to validate credit card numbers using luhn algorithm","archived":false,"fork":false,"pushed_at":"2017-01-13T05:12:13.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-25T22:28:35.265Z","etag":null,"topics":["credit-card","javascript-library","luhn-algorithm","luhn-cc"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/ianaya89.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-12T04:25:54.000Z","updated_at":"2017-07-08T04:53:58.000Z","dependencies_parsed_at":"2023-06-06T14:15:33.188Z","dependency_job_id":null,"html_url":"https://github.com/ianaya89/luhn-cc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ianaya89/luhn-cc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianaya89%2Fluhn-cc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianaya89%2Fluhn-cc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianaya89%2Fluhn-cc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianaya89%2Fluhn-cc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ianaya89","download_url":"https://codeload.github.com/ianaya89/luhn-cc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianaya89%2Fluhn-cc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":285068447,"owners_count":27109462,"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","status":"online","status_checked_at":"2025-11-18T02:00:05.759Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["credit-card","javascript-library","luhn-algorithm","luhn-cc"],"created_at":"2024-10-11T09:07:40.193Z","updated_at":"2025-11-18T14:38:47.958Z","avatar_url":"https://github.com/ianaya89.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 💳 ✅ ❌ luhn-cc\n\n[![npm version](https://badge.fury.io/js/luhn-cc.svg)](https://badge.fury.io/js/luhn-cc)\n[![CircleCI](https://circleci.com/gh/ianaya89/luhn-cc.svg?style=svg)](https://circleci.com/gh/ianaya89/luhn-cc)\n[![Coverage Status](https://coveralls.io/repos/github/ianaya89/luhn-cc/badge.svg?branch=master)](https://coveralls.io/github/ianaya89/luhn-cc?branch=master)\n[![bitHound Overall Score](https://www.bithound.io/github/ianaya89/luhn-cc/badges/score.svg)](https://www.bithound.io/github/ianaya89/luhn-cc)\n[![bitHound Dependencies](https://www.bithound.io/github/ianaya89/luhn-cc/badges/dependencies.svg)](https://www.bithound.io/github/ianaya89/luhn-cc/master/dependencies/npm)\n[![bitHound Dev Dependencies](https://www.bithound.io/github/ianaya89/luhn-cc/badges/devDependencies.svg)](https://www.bithound.io/github/ianaya89/luhn-cc/master/dependencies/npm)\n[![bitHound Code](https://www.bithound.io/github/ianaya89/luhn-cc/badges/code.svg)](https://www.bithound.io/github/ianaya89/luhn-cc)\n\n\n\u003e JavaScript library to validate credit card numbers using luhn algorithm\n\n\n## Installation\n```bash\n$ npm i -S luhn-cc\n```\n\n## Usage\n\n```javascript\nimport luhnCC from 'luhn-cc';\n\nluhnCC.isValid('378282246310005'); // true\nluhnCC.isValid('378282246'); // false\n```\n\n## Tested Cards\n| Credit Card Type     | Credit Card Number | Tested |\n|----------------------|--------------------|--------|\n| AMEX                 | 378282246310005    | ✅      |\n| AMEX Corporate       | 378734493671000    | ✅      |\n| Australian Bank Card | 5610591081018250   | ✅      |\n| Diners Club          | 30569309025904     | ✅      |\n| Discover             | 6011111111111117   | ✅      |\n| JCB                  | 3530111333300000   | ✅      |\n| Master Card          | 5555555555554444   | ✅      |\n| VISA                 | 4111111111111111   | ✅      |\n| Switch/Solo          | 6331101999990016   | ✅      |\n\n## Development Setup\n\n```bash\n# install dependencies\n$ npm install\n\n# dev mode\n$ npm run dev\n\n# test\n$ npm run test\n\n# build\n$ npm run build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fianaya89%2Fluhn-cc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fianaya89%2Fluhn-cc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fianaya89%2Fluhn-cc/lists"}