Skip to content

Documentation / @facturometro/validator / identifiers / checkCodiceIPA

Function: checkCodiceIPA() ​

checkCodiceIPA(value): boolean

Defined in: packages/validator/src/identifiers/it-cf-piva.ts:120

u:checkCodiceIPA: an IPA code is exactly six letters or digits.

Parameters ​

value ​

string

The identifier, whitespace-normalized.

Returns ​

boolean

true when the value is six alphanumeric characters.

Example ​

ts
import { checkCodiceIPA } from '@facturometro/validator';

checkCodiceIPA('UFY8Y2'); // true
checkCodiceIPA('UF-8Y2'); // false

MIT licensed. Specification artefacts belong to OpenPEPPOL, CEN and OASIS.