Git Product home page Git Product logo

fake-numbers's Introduction

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

fake-numbers's People

Contributors

dependabot[bot] avatar phuocng avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.