is-valid-nip

    1.0.1 • Public • Published

    npm downloads CI tested with jest

    is-valid-nip

    Check if a number is a valid Numer Identyfikacji Podatkowej (NIP).

    tl;dr

    • Install by executing npm install is-valid-nip or yarn add is-valid-nip.
    • Import by adding import isValidNIP from 'is-valid-nip'.
    • Use it by writing const valid = isValidNIP('5252611332')

    See also

    Examples

    > isValidNIP('5252611332');
    < true
    
    > isValidNIP('525-261-13-32');
    < true
    
    > isValidNIP('525-26-11-332');
    < true

    License

    The MIT License.

    Author

    Wojciech Maj
    kontakt@wojtekmaj.pl
    https://wojtekmaj.pl

    Install

    npm i is-valid-nip

    DownloadsWeekly Downloads

    55

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    10.5 kB

    Total Files

    9

    Last publish

    Collaborators

    • wojtekmaj