credit-card-type

  • Version 10.0.1
  • Published
  • 43.3 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 (9)

                  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>