Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@phuocng/fake-numbers

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@phuocng/fake-numbers

Generate fake, valid numbers

  • 1.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
438
decreased by-16.41%
Maintainers
1
Weekly downloads
 
Created
Source

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/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

  • 01. BIC (Business Identifier Code)
  • 02. BTW: Belgian VAT number
  • 03. CNPJ (Cadastro Nacional da Pessoa Jurídica): Brazilian company identifier
  • 04. CPF (Cadastro de Pessoas Físicas): Brazilian identification number
  • 05. Credit card number
  • 06. CUSIP (Committee on Uniform Security Identification Procedures)
  • 07. CVV (Card Verification Value)
  • 08. EAN (International Article Number)
  • 09. IMEI (International Mobile Equipment Identity)
  • 10. IMO (International Maritime Organization)
  • 11. ISBN (International Standard Book Number)
  • 12. ISIN (International Securities Identification Number)
  • 13. ISMN (International Standard Music Number)
  • 14. ISSN (International Standard Serial Number)
  • 15. NIF (Numéro d'Immatriculation Fiscale): French tax identification number
  • 16. NPI (National Provider Identifier)
  • 17. NRIC (Singaporean National Registration Identity Card)
  • 18. RTN (Routing Transit Number)
  • 19. SEDOL (Stock Exchange Daily Official List)
  • 20. SIN (Canadian Social Insurance Number)
  • 21. SIREN
  • 22. SIRET (Système d’Identification du Répertoire des Établissements)
  • 23. SSN (Social Security number)
  • 24. UID (Umsatzsteuer-Identifikationsnummer): Austrian VAT number
  • 25. VIN (Vehicle Identification Number): Support US only

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:

ProductDescription
Blur PageA browser extension to hide sensitive information on a web page
CSS LayoutA collection of popular layouts and patterns made with CSS
Fake NumbersGenerate fake and valid numbers
Form ValidationThe best validation library for JavaScript
React PDF ViewerA React component to view a PDF document

Keywords

FAQs

Package last updated on 09 Feb 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc