1.4.2 • Published 4 years ago
@phuocng/fake-numbers v1.4.2
Fake Numbers
Generate fake, valid numbers. Check if a given number is valid.
Usage
The following piece of code generates a fake, valid credit card number.
- 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`
- Use the umd package in the browser:
<script src="https://unpkg.com/@phuocng/fake-numbers@1.0.0/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
- ABN: Australian Business Number
- ACN: Australian Company Number
- ALV (Arvonlisäveronumero): Finnish VAT number
- ANUM: Hungarian VAT number
- BIC: Business Identifier Code
- BN: Canadian Business Number
- BTW: Belgian VAT number
- CNPJ (Cadastro Nacional da Pessoa Jurídica): Brazilian company identifier
- CPF (Cadastro de Pessoas Físicas): Brazilian identification number
- Credit card number
- CUSIP (Committee on Uniform Security Identification Procedures)
- CVR: Danish VAT number
- CVV: Card Verification Value
- DDV: Slovenian VAT number
- EAN: International Article Number
- FPA: Greek VAT number
- IBAN: International Bank Account Number
- IMEI: International Mobile Equipment Identity
- IMO: International Maritime Organization
- ISBN: International Standard Book Number
- ISIN: International Securities Identification Number
- ISMN: International Standard Music Number
- ISSN: International Standard Serial Number
- NIF (Numéro d'Immatriculation Fiscale): French tax identification number
- NPI: National Provider Identifier
- NRIC: Singaporean National Registration Identity Card
- PVM: Lithuanian VAT number
- RIF (Registro de Identificación Fiscal): Venezuelan VAT number
- RTN: Routing Transit Number
- SEDOL: Stock Exchange Daily Official List
- SIN: Canadian Social Insurance Number
- SIREN
- SIRET (Système d’Identification du Répertoire des Établissements)
- SSN: Social Security number
- SVNR: Austrian social insurance number
- TFN: Australian Tax File Number
- TRN: South African Tax Reference Number
- UID (Umsatzsteuer-Identifikationsnummer): Austrian VAT number
- VIN: Vehicle Identification Number (Support US only)
- 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 |