All Projects → phuoc-ng → fake-numbers

phuoc-ng / fake-numbers

Licence: other
Generate fake, valid numbers. Check if a number is valid. Support a lot of different numbers: Credit card, EAN, ISBN, RTN, VIN, etc.

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to fake-numbers

jRand
A Java library to generate random data for all sorts of things. Java random data faker
Stars: ✭ 27 (-47.06%)
Mutual labels:  faker, random-number-generators
yii2-at-least-validator
Makes one or more attributes mandatory inside a set of attributes.
Stars: ✭ 28 (-45.1%)
Mutual labels:  validator
NAGPythonExamples
Examples and demos showing how to call functions from the NAG Library for Python
Stars: ✭ 46 (-9.8%)
Mutual labels:  random-number-generators
gulp-html
Gulp plugin for HTML validation, using the official Nu Html Checker (v.Nu)
Stars: ✭ 70 (+37.25%)
Mutual labels:  validator
guice-validator
Guice javax.validation method validation integration
Stars: ✭ 35 (-31.37%)
Mutual labels:  validator
kontrolio
Simple standalone data validation library inspired by Laravel and Symfony
Stars: ✭ 51 (+0%)
Mutual labels:  validator
javascript-strong-password-generator
JavaScript Strong Password Generator: based on Jeff Atwood's Post "Password Rules Are Bullshit".
Stars: ✭ 21 (-58.82%)
Mutual labels:  random-number-generators
ImNotSpider
浏览器User Agent生成器
Stars: ✭ 17 (-66.67%)
Mutual labels:  faker
garn-validator
Create validations with ease
Stars: ✭ 42 (-17.65%)
Mutual labels:  validator
ATGValidator
iOS validation framework with form validation support
Stars: ✭ 51 (+0%)
Mutual labels:  validator
ngx-translate-lint
Simple CLI tools for check `ngx-translate` keys
Stars: ✭ 25 (-50.98%)
Mutual labels:  validator
cron-validate
A cron-expression validator for TypeScript/JavaScript projects.
Stars: ✭ 40 (-21.57%)
Mutual labels:  validator
validation
Developer experience focused validator.
Stars: ✭ 15 (-70.59%)
Mutual labels:  validator
CRC-manipulator
Change CRC checksums of your files.
Stars: ✭ 73 (+43.14%)
Mutual labels:  faker
randomdata
TYPO3 extensions to generate new random data or replace existing data with random data
Stars: ✭ 14 (-72.55%)
Mutual labels:  faker
rust-phonenumber
Library for parsing, formatting and validating international phone numbers.
Stars: ✭ 99 (+94.12%)
Mutual labels:  validator
djburger
Framework for safe and maintainable web-projects.
Stars: ✭ 75 (+47.06%)
Mutual labels:  validator
FilterInputJs
Tiny and Powerful Library for limit an entry (text box,input) as number,string or more...
Stars: ✭ 37 (-27.45%)
Mutual labels:  validator
schrodingers-rng
Creates random numbers using a webcam attached to a smoke alarm
Stars: ✭ 12 (-76.47%)
Mutual labels:  random-number-generators
mockingbird
🐦 Decorator Powered TypeScript Library for Creating Mocks
Stars: ✭ 70 (+37.25%)
Mutual labels:  faker

Fake Numbers

Generate fake, valid numbers. Check if a given number is valid.

Fake Numbers

Usage

The following piece of code generates a fake, valid credit card number.

  1. Use the @phuocng/fake-numbers package
import { creditCard } from '@phuocng/fake-numbers';

// Generate a fake credit card number
const creditCardNumber = creditCard.fake();

// Check if a given value is a valid credit card nunber
creditCard.check(creditCardNumber).valid;       // returns `true`
  1. Use the umd package in the browser:
<script src="https://unpkg.com/@phuocng/[email protected]/umd/fake-numbers.min.js"></script>

<script>
// Fake a credit card number
const number = FakeNumbers.creditCard.fake();

// Check a credit card number
const isValid = FakeNumbers.creditCard.check('given number').valid;
</script>

Supported numbers

  • 01. ABN: Australian Business Number
  • 02. ACN: Australian Company Number
  • 03. ALV (Arvonlisäveronumero): Finnish VAT number
  • 04. ANUM: Hungarian VAT number
  • 05. BIC: Business Identifier Code
  • 06. BN: Canadian Business Number
  • 07. BTW: Belgian VAT number
  • 08. CNPJ (Cadastro Nacional da Pessoa Jurídica): Brazilian company identifier
  • 09. CPF (Cadastro de Pessoas Físicas): Brazilian identification number
  • 10. Credit card number
  • 11. CUSIP (Committee on Uniform Security Identification Procedures)
  • 12. CVR: Danish VAT number
  • 13. CVV: Card Verification Value
  • 14. DDV: Slovenian VAT number
  • 15. EAN: International Article Number
  • 16. FPA: Greek VAT number
  • 17. IBAN: International Bank Account Number
  • 18. IMEI: International Mobile Equipment Identity
  • 19. IMO: International Maritime Organization
  • 20. ISBN: International Standard Book Number
  • 21. ISIN: International Securities Identification Number
  • 22. ISMN: International Standard Music Number
  • 23. ISSN: International Standard Serial Number
  • 24. NIF (Numéro d'Immatriculation Fiscale): French tax identification number
  • 25. NPI: National Provider Identifier
  • 26. NRIC: Singaporean National Registration Identity Card
  • 27. PVM: Lithuanian VAT number
  • 28. RIF (Registro de Identificación Fiscal): Venezuelan VAT number
  • 29. RTN: Routing Transit Number
  • 30. SEDOL: Stock Exchange Daily Official List
  • 31. SIN: Canadian Social Insurance Number
  • 32. SIREN
  • 33. SIRET (Système d’Identification du Répertoire des Établissements)
  • 34. SSN: Social Security number
  • 35. SVNR: Austrian social insurance number
  • 36. TFN: Australian Tax File Number
  • 37. TRN: South African Tax Reference Number
  • 38. UID (Umsatzsteuer-Identifikationsnummer): Austrian VAT number
  • 39. VIN: Vehicle Identification Number (Support US only)
  • 40. VKN: Turkish tax identification number

License

Purchase a Commercial License at the official website

About

This project is developed by Nguyen Huu Phuoc. You might be interesting in my projects:

Product Description
Blur Page A browser extension to hide sensitive information on a web page
CSS Layout A collection of popular layouts and patterns made with CSS
Fake Numbers Generate fake and valid numbers
Form Validation The best validation library for JavaScript
React PDF Viewer A React component to view a PDF document
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].