Installation
npm install --save @types/creditcardutils
Summary
This package contains type definitions for creditcardutils (https://github.com/faaez/creditcardutils#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/creditcardutils.
export function validateCardNumber(cardNumber: string): boolean;
export function formatCardNumber(unformatted: string): string;
export function parseCardType(cardNumber: string): string;
export function validateCardExpiry(month: string, year: string): boolean;
export function formatCardExpiry(expiration: string): string;
export function parseCardExpiry(expiration: string): object;
export function validateCardCVC(cvc: string, type?: string): boolean;
export as namespace creditcardutils;
Additional Details
- Last updated: Mon, 06 Nov 2023 22:41:05 GMT
- Dependencies: none
Credits
These definitions were written by Steven Conaway.