{"id":16145502,"url":"https://github.com/phuocng/fake-numbers","last_synced_at":"2025-03-18T18:30:39.829Z","repository":{"id":44212617,"uuid":"237359448","full_name":"phuocng/fake-numbers","owner":"phuocng","description":"Generate fake, valid numbers. Check if a number is valid. Support a lot of different numbers: Credit card, EAN, ISBN, RTN, VIN, etc.","archived":false,"fork":false,"pushed_at":"2022-12-30T19:38:31.000Z","size":710,"stargazers_count":60,"open_issues_count":6,"forks_count":9,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-11T00:16:40.433Z","etag":null,"topics":["faker","random-number-generators","typescript","validator"],"latest_commit_sha":null,"homepage":"https://fakenumbers.io","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phuocng.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-31T04:25:09.000Z","updated_at":"2024-08-12T19:57:12.000Z","dependencies_parsed_at":"2023-01-31T14:45:47.621Z","dependency_job_id":null,"html_url":"https://github.com/phuocng/fake-numbers","commit_stats":null,"previous_names":["phuoc-ng/fake-numbers"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phuocng%2Ffake-numbers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phuocng%2Ffake-numbers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phuocng%2Ffake-numbers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phuocng%2Ffake-numbers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phuocng","download_url":"https://codeload.github.com/phuocng/fake-numbers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221715361,"owners_count":16868551,"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":["faker","random-number-generators","typescript","validator"],"created_at":"2024-10-10T00:16:37.740Z","updated_at":"2024-10-27T18:10:24.199Z","avatar_url":"https://github.com/phuocng.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fake Numbers\nGenerate fake, valid numbers. Check if a given number is valid.\n\n![Fake Numbers](https://fakenumbers.io/assets/screenshot.png)\n\n## Usage\n\nThe following piece of code generates a fake, valid credit card number.\n\n1. Use the [@phuocng/fake-numbers](https://www.npmjs.com/package/@phuocng/fake-numbers) package\n\n~~~ javascript\nimport { creditCard } from '@phuocng/fake-numbers';\n\n// Generate a fake credit card number\nconst creditCardNumber = creditCard.fake();\n\n// Check if a given value is a valid credit card nunber\ncreditCard.check(creditCardNumber).valid;       // returns `true`\n~~~\n\n2. Use the umd package in the browser:\n\n~~~ html\n\u003cscript src=\"https://unpkg.com/@phuocng/fake-numbers@1.0.0/umd/fake-numbers.min.js\"\u003e\u003c/script\u003e\n\n\u003cscript\u003e\n// Fake a credit card number\nconst number = FakeNumbers.creditCard.fake();\n\n// Check a credit card number\nconst isValid = FakeNumbers.creditCard.check('given number').valid;\n\u003c/script\u003e\n~~~\n\n## Supported numbers\n\n* [x] 01. ABN: Australian Business Number\n* [x] 02. ACN: Australian Company Number\n* [x] 03. ALV (_Arvonlisäveronumero_): Finnish VAT number\n* [x] 04. ANUM: Hungarian VAT number\n* [x] 05. BIC: Business Identifier Code\n* [x] 06. BN: Canadian Business Number\n* [x] 07. BTW: Belgian VAT number\n* [x] 08. CNPJ (_Cadastro Nacional da Pessoa Jurídica_): Brazilian company identifier\n* [x] 09. CPF (_Cadastro de Pessoas Físicas_): Brazilian identification number\n* [x] 10. Credit card number\n* [x] 11. CUSIP (_Committee on Uniform Security Identification Procedures_)\n* [x] 12. CVR: Danish VAT number\n* [x] 13. CVV: Card Verification Value\n* [x] 14. DDV: Slovenian VAT number\n* [x] 15. EAN: International Article Number\n* [x] 16. FPA: Greek VAT number\n* [x] 17. IBAN: International Bank Account Number\n* [x] 18. IMEI: International Mobile Equipment Identity\n* [x] 19. IMO: International Maritime Organization\n* [x] 20. ISBN: International Standard Book Number\n* [x] 21. ISIN: International Securities Identification Number\n* [x] 22. ISMN: International Standard Music Number\n* [x] 23. ISSN: International Standard Serial Number\n* [x] 24. NIF (_Numéro d'Immatriculation Fiscale_): French tax identification number\n* [x] 25. NPI: National Provider Identifier\n* [x] 26. NRIC: Singaporean National Registration Identity Card\n* [x] 27. PVM: Lithuanian VAT number\n* [x] 28. RIF (_Registro de Identificación Fiscal_): Venezuelan VAT number\n* [x] 29. RTN: Routing Transit Number\n* [x] 30. SEDOL: Stock Exchange Daily Official List\n* [x] 31. SIN: Canadian Social Insurance Number\n* [x] 32. SIREN\n* [x] 33. SIRET (_Système d’Identification du Répertoire des Établissements_)\n* [x] 34. SSN: Social Security number\n* [x] 35. SVNR: Austrian social insurance number\n* [x] 36. TFN: Australian Tax File Number\n* [x] 37. TRN: South African Tax Reference Number\n* [x] 38. UID (_Umsatzsteuer-Identifikationsnummer_): Austrian VAT number\n* [x] 39. VIN: Vehicle Identification Number (Support US only)\n* [x] 40. VKN: Turkish tax identification number\n\n## License\nPurchase a Commercial License at the [official website](https://fakenumbers.io)\n\n## About\n\nThis project is developed by [Nguyen Huu Phuoc](https://twitter.com/nghuuphuoc).\nYou might be interesting in my projects:\n\n| Product                                           | Description                                                       |\n|---------------------------------------------------|-------------------------------------------------------------------|\n| [Blur Page](https://blur.page)                    | A browser extension to hide sensitive information on a web page   |\n| [CSS Layout](https://csslayout.io)                | A collection of popular layouts and patterns made with CSS        |\n| [Fake Numbers](https://fakenumbers.io)            | Generate fake and valid numbers                                   |\n| [Form Validation](https://formvalidation.io)      | The best validation library for JavaScript                        |\n| [React PDF Viewer](https://react-pdf-viewer.dev)  | A React component to view a PDF document                          |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphuocng%2Ffake-numbers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphuocng%2Ffake-numbers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphuocng%2Ffake-numbers/lists"}