JSPM

valitalor

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 12
  • Score
    100M100P100Q33641F
  • License MIT

Italian localized validation library

Package Exports

  • valitalor
  • valitalor/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (valitalor) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

valitalor

Italian localized validation library. Since the package is localized, by choice some of the code and documentation are also localized.

Installation

You can install this package via npm.

npm i valitalor

Package check

Just to check the success of the installation, also returns basic package information.

Param Type Mandatory Description
No parameters are required
const valita = require('valitalor');
console.log(valita.itWorks());

#output : { json } > {
#    "itWorks": "Yes, it works!",
#    "package": "valitalor",
#    "version": "1.0.3"
#}

Usage

isCodiceFiscale

Validation of the "Codice Fiscale" (individual TAX code) including verification of the control character.

Param Type Mandatory Description
codicefiscale string true Codice Fiscale
const valita = require('valitalor');
console.log(valita.isCodiceFiscale('<codicefiscale>'));

#output : bool > true | false

isIBAN

Formal validation of the IBAN bank account code.

Param Type Mandatory Description
IBAN string true IBAN
const valita = require('valitalor');
console.log(valita.isIBAN('<IBAN>'));

#output : bool > true | false

isPartitaIVA

Validation of the "Partita IVA" (VAT code) including verification of the control number.

Param Type Mandatory Description
partitIVA string true "Partita IVA" (VAT code)
const valita = require('valitalor');
console.log(valita.isPartitaIVA('<partitIVA>'));

#output : bool > true | false

isTargaAuto

Formal validation of the car license plate number.

Param Type Mandatory Description
targa string true Car license plate number
const valita = require('valitalor');
console.log(valita.isTargaAuto('<targa>'));

#output : bool > true | false

isTargaMoto

Formal validation of the motorcycle license plate number.

Param Type Mandatory Description
targa string true Motorcycle license plate number
const valita = require('valitalor');
console.log(valita.isTargaMoto('<codicefiscale>'));

#output : bool > true | false

License

MIT