Natural Performance Manager

    fast-luhn
    TypeScript icon, indicating that this package has built-in type declarations

    2.0.0 • Public • Published

    fast-luhn tests

    A fast Luhn algorithm for validating credit cards. Adapted from ShirtlessKirk's popular gist.

    Installing

    $ npm install fast-luhn

    API

    luhn(number) -> Boolean

    Returns true/false depending on whether the Luhn checksum is valid

    number

    Required
    Type: string

    A credit card number.

    License

    MIT © Ben Drucker

    Install

    npm i fast-luhn

    DownloadsWeekly Downloads

    20,365

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    3.46 kB

    Total Files

    7

    Last publish

    Collaborators

    • avatar