0.1.12 • Published 5 years ago

dcitalianfiscalcode v0.1.12

Weekly downloads
12
License
MIT
Repository
github
Last release
5 years ago

pipeline statuscoverage report

DCItalianFiscalCode

An Italian Fiscal Code generator available as Node.js modules.

Installation

Using npm:

$ npm i --save dcitalianfiscalcode

In Node.js:

// Load the module.
var fcUtility = require('dcitalianfiscalcode');
// get fiscal code passing data (gender is optional, we could pass undefined).
fcUtility.generateFiscalCode(surname, name, birthYear, birthMonth, birthDay, gender, birthPlace);
// get fiscal code info passing fiscal code.
const info = fcUtility.getFiscalCodeInfo (fiscalCode)
// access info
console.log(info.birthPlace);
console.log(info.birthProvince);

If gender is not passed as parameter, this module will try to detect it automatically using name

Feature

  • fiscal code generation starting from user's info
  • gender auto-detection using name
  • extract birth info from fiscal code (birthPlace, birthProvince) See the package source for more details.
0.1.12

5 years ago

0.1.11

5 years ago

0.1.10

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago