is-valid-utr
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

npm downloads CI

Is-Valid-UTR

Check if a number is a valid Unique Taxpayer Reference (UTR).

tl;dr

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

Examples

isValidUTR('1123456789'); // true

isValidUTR('11234 56789'); // true

License

The MIT License.

Author

Wojciech Maj Wojciech Maj

Dependencies (0)

    Dev Dependencies (8)

    Package Sidebar

    Install

    npm i is-valid-utr

    Weekly Downloads

    19

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    7.62 kB

    Total Files

    10

    Last publish

    Collaborators

    • wojtekmaj