[READ-ONLY] Mirror of https://github.com/wojtekmaj/is-valid-utr. Check if a number is a valid Unique Taxpayer Reference (UTR).
0

Configure Feed

Select the types of activity you want to include in your feed.

TypeScript 89.9%
JavaScript 8.1%
Other 2.0%
141 1 3

Clone this repository

https://git.vm.fail/wojtekmaj.pl/is-valid-utr https://git.vm.fail/did:plc:lneobcutkv6w32575sjnhuyq
ssh://git@knot1.tangled.sh:2222/wojtekmaj.pl/is-valid-utr ssh://git@knot1.tangled.sh:2222/did:plc:lneobcutkv6w32575sjnhuyq

For self-hosted knots, clone URLs may differ based on your setup.


README.md

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