Validate Sri Lankan TIN and VAT numbers issued by the Inland Revenue Department.
Import from lanka-validations/tax, or from the package root.
lanka-validations/tax
Format-only checks. An NIC number is not a TIN; registration can only be confirmed with IRD.
import { isValidTIN, isValidVAT } from 'lanka-validations/tax';isValidTIN('123456789'); // trueisValidVAT('123456789-7000'); // true Copy
import { isValidTIN, isValidVAT } from 'lanka-validations/tax';isValidTIN('123456789'); // trueisValidVAT('123456789-7000'); // true
Validate Sri Lankan TIN and VAT numbers issued by the Inland Revenue Department.
Import from
lanka-validations/tax, or from the package root.Format-only checks. An NIC number is not a TIN; registration can only be confirmed with IRD.
Example