2018-09-03 14:59:53 +02:00
|
|
|
# CodiceFiscale.js
|
|
|
|
CodiceFiscale.js is a javascript and typescript utility library to compute and validate Italian Italian Tax code (codice fiscale).
|
2016-03-22 20:23:28 +01:00
|
|
|
|
2019-04-14 15:36:56 +02:00
|
|
|
### Check it out
|
|
|
|
[CodiceFiscaleJS](https://lucavandro.github.io/CodiceFiscaleJS/)
|
2016-03-22 20:23:28 +01:00
|
|
|
|
2019-04-14 15:36:56 +02:00
|
|
|
### Donate
|
|
|
|
[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=W2M92TNMXR3CC&source=url)
|
2016-03-22 20:23:28 +01:00
|
|
|
|
2018-09-03 14:59:53 +02:00
|
|
|
## Change log
|
2020-05-26 22:01:21 +02:00
|
|
|
**Version 2.2.5**
|
2020-05-26 21:54:57 +02:00
|
|
|
- Added more comuni
|
|
|
|
- Updated gh-pages sites
|
|
|
|
- Security fix
|
|
|
|
|
2019-07-10 16:06:45 +02:00
|
|
|
**Version 2.2.4**
|
2019-06-27 00:36:05 +02:00
|
|
|
- Fixed lowercase validation issue
|
|
|
|
- Updated country list
|
|
|
|
- Security fix
|
|
|
|
|
|
|
|
|
2019-04-14 15:36:56 +02:00
|
|
|
**Version 2.2.1**
|
|
|
|
- Fixed UTC Date issue
|
|
|
|
- Minor bug fixed
|
|
|
|
|
2018-09-03 14:59:53 +02:00
|
|
|
**Version 2.0.0**
|
|
|
|
- Added TypeScript support
|
|
|
|
- Added Object-oriented API
|
|
|
|
- Improved performance
|
|
|
|
- Improved error detection
|
|
|
|
- Backcompatible
|
2016-03-22 20:23:28 +01:00
|
|
|
|
2018-09-03 14:59:53 +02:00
|
|
|
## Installation
|
|
|
|
**Node**
|
|
|
|
```sh
|
|
|
|
npm install codice-fiscale-js --save
|
2019-06-27 08:40:15 +02:00
|
|
|
```
|
|
|
|
```js
|
|
|
|
var CodiceFiscale = require('codice-fiscale-js');
|
|
|
|
|
2017-09-06 00:14:16 +02:00
|
|
|
```
|
2018-09-03 14:59:53 +02:00
|
|
|
**Web**
|
|
|
|
```html
|
|
|
|
<script src="/dist/codice.fiscale.var.js"></script>
|
2017-09-06 18:25:37 +02:00
|
|
|
```
|
2018-09-03 14:59:53 +02:00
|
|
|
AMD, UMD e CommonJS version are available. Check `dist` folder
|
2017-03-10 12:46:46 +01:00
|
|
|
|
2018-09-03 14:59:53 +02:00
|
|
|
## Docs
|
2018-09-03 17:16:53 +02:00
|
|
|
- [Javascript](https://github.com/lucavandro/CodiceFiscaleJS/tree/master/docs/js-oop.md)
|
|
|
|
- [TypeScript](https://github.com/lucavandro/CodiceFiscaleJS/tree/master/docs/typescript.md)
|
2018-09-03 14:59:53 +02:00
|
|
|
- [Javascript v1.2.0 deprecated](https://github.com/lucavandro/CodiceFiscaleJS/tree/master/docs/js-static.md)
|
2017-03-10 12:46:46 +01:00
|
|
|
## Available npm scripts:
|
|
|
|
- `npm run build`: build the bundle into `dist` directory.
|
2018-09-03 14:59:53 +02:00
|
|
|
- `npm run test`: launch the tests.
|