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';
const creditCardNumber = creditCard.fake();
creditCard.check(creditCardNumber).valid;
- 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>
const number = FakeNumbers.creditCard.fake();
const isValid = FakeNumbers.creditCard.check('given number').valid;
</script>
Supported numbers
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 |