credit-card-type

  • Version 9.1.0
  • Published
  • 42.9 kB
  • No dependencies
  • MIT license

Install

npm i credit-card-type
yarn add credit-card-type
pnpm add credit-card-type

Overview

A library for determining credit card type

Index

Variables

variable types

var types: Record<string, CreditCardTypeCardBrandId>;

    Functions

    function addCard

    addCard: (config: CreditCardType) => void;

      function changeOrder

      changeOrder: (name: string, position: number) => void;

        function creditCardType

        creditCardType: typeof creditCardType;

          function getTypeInfo

          getTypeInfo: (cardType: string) => CreditCardType;

            function removeCard

            removeCard: (name: string) => void;

              function resetModifications

              resetModifications: () => void;

                function updateCard

                updateCard: (cardType: string, updates: Partial<CreditCardType>) => void;

                  Package Files (1)

                  Dependencies (0)

                  No dependencies.

                  Dev Dependencies (7)

                  Peer Dependencies (0)

                  No peer dependencies.

                  Badge

                  To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                  You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/credit-card-type.

                  • Markdown
                    [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/credit-card-type)
                  • HTML
                    <a href="https://www.jsdocs.io/package/credit-card-type"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>