Go to file
Walter Barbagallo ca02e409a2 Exporting module
2017-03-10 12:20:20 +01:00
tests Init 2016-03-22 20:23:28 +01:00
.gitignore Add webpack 2017-03-10 12:03:36 +01:00
bower.json Added bower support 2016-03-22 20:33:05 +01:00
codice.fiscale.js Exporting module 2017-03-10 12:20:20 +01:00
codice.fiscale.min.js Init 2016-03-22 20:23:28 +01:00
Gulpfile.js Init 2016-03-22 20:23:28 +01:00
karma.conf.js Exporting module 2017-03-10 12:20:20 +01:00
LICENSE Initial commit 2016-03-22 20:20:42 +01:00
package.json Add webpack 2017-03-10 12:03:36 +01:00
readme.md Init 2016-03-22 20:23:28 +01:00
webpack.config.js Exporting module 2017-03-10 12:20:20 +01:00
yarn.lock Add webpack 2017-03-10 12:03:36 +01:00

CodiceFiscale.js

CodiceFiscale.js is a utility library to compute and validate Italian Italian Tax code (codice fiscale).

Usage

Compute

Compute a codice fiscale given:

  • Name (String)
  • Surname (String)
  • Gender (String) ["M","F"]
  • Birthday day (Number)
  • Birthday month (Number)
  • Birthday year (Number)
  • Place of birth (String)
  • Province of birth (String)
var cf = CodiceFiscale.compute("Enzo","Righi","M",24,7,1957,"Napoli", "NA");

Check

Check if a codice fiscale is valid. It returns a boolean value.

var isValid = CodiceFiscale.check("VNDLDL10A01G410Z");

Omocodie

Get all the omocodie for a given Codice Fiscale. It returns an array of strings

var omocodie = CodiceFiscale.getOmocodie("VNDLDL10A01G410Z");