npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@phuocng/fake-numbers

v1.4.2

Published

Generate fake, valid numbers

Downloads

961

Readme

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

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