-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e713794
commit 430c4f9
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,31 @@ | ||
# card-validator-utils | ||
|
||
Library package util for payment industry | ||
|
||
## installation | ||
|
||
``` | ||
npm i card-validatore-utils | ||
``` | ||
|
||
## usage | ||
|
||
`isCreditCard` function return boolean | ||
|
||
``` | ||
const { isCreditCard } = require("card-validator-utils"); | ||
isCreditCard('4242424242424242') | ||
``` | ||
|
||
`isEncryptedToken` function returns boolean based 44 digit input | ||
|
||
44 digit is encrypted version of card number | ||
|
||
``` | ||
const { isEncryptedToken } = require("card-validator-utils"); | ||
isEncryptedToken('42424242F242R24242424242F24242424242424C424X') | ||
``` |