UNPKG

jsfakeit

Version:

![alt text](https://raw.githubusercontent.com/Anirban20001962/jsfakeit/main/logo.png)

39 lines (38 loc) 1.85 kB
import { CreditCardTypes } from '../data/payment'; export interface CurrencyInfo { short: string; long: string; } /** CreditCard is a interface containing credit variables*/ export interface CreditCard { type: keyof typeof CreditCardTypes; number: number; exp: string; cvv: string; } /** Generate a random long currency*/ export declare const currencyLong: () => string; /** Generate a random short currency*/ export declare const currencyShort: () => string; /** Generate currency with random currency information*/ export declare const currency: () => CurrencyInfo; /** Price will take in a min and max value and return a formatted price*/ export declare const price: (min: number, max: number) => number; /** CreditCardType will generate a random credit card type string*/ export declare const creditCardType: () => "visa" | "mastercard" | "american-express" | "diners-club" | "discover" | "jcb" | "unionpay" | "maestro" | "elo" | "hiper" | "hipercard" | "mir"; /** CreditCardExp will generate a random credit card expiration date string Exp date will always be a future date*/ export declare const creditCardExp: () => string; /** creditCardNumber will generate random credit card number*/ export declare const creditCardNumber: (type: keyof typeof CreditCardTypes) => number; /** Generates random credit card cvv*/ export declare const creditCardCvv: (type: keyof typeof CreditCardTypes) => string; /** Generates random credit Card*/ export declare const creditCard: () => CreditCard; /** Generate 9-digit AchRouting number*/ export declare const achRouting: () => string; /** Generate 12-digit AchAccount number*/ export declare const achAccount: () => string; export declare const isLuhn: (num: string) => boolean; export declare const bitcoinAddress: () => string; export declare const bitcoinPrivateKey: () => string;