# codicefiscalejs-node

> A Node.js library to compute, validate and reverse Italian Tax Code (codice fiscale)

Latest version **0.0.1** (published 2020-09-27) · CC-BY-ND-4.0 license · 0 weekly downloads

## Install

```sh
npm install codicefiscalejs-node
pnpm add codicefiscalejs-node
yarn add codicefiscalejs-node
bun add codicefiscalejs-node
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2020-09-27 |
| First published | 2020-09-27 |
| Weekly downloads | 0 |
| License | CC-BY-ND-4.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.1 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Luca Vandro |
| Maintainers | lucavandro |
| Keywords | Codice fiscale, Codice, fiscale, node, javascript, typescript |

## Links

- npm: https://www.npmjs.com/package/codicefiscalejs-node
- Repository: https://github.com/lucavandro/CodiceFiscaleJS-node
- Homepage: https://github.com/lucavandro/CodiceFiscaleJS-node#readme
- Issues: https://github.com/lucavandro/CodiceFiscaleJS-node/issues
- npm.io page: https://npm.io/package/codicefiscalejs-node

## Dependencies (1)

- [ajv](https://npm.io/package/ajv.md) ^6.12.5

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2020-09-27

## README

# CodiceFiscaleJS/Node

CodiceFiscaleJS/Node is a javascript and typescript utility library to compute and validate Italian  Italian Tax code (codice fiscale). Inspired to [CodiceFiscaleJS](https://github.com/lucavandro/CodiceFiscaleJS/), it was rewritten from scratch for Node.js, in order to be faster (actually it's, on average, twice faster than CodiceFiscaleJS 🚄) and hopefully easier to use.


## Don't fork, contribute!

Please, don't fork and republish this repository with silly minor changes! 😠 
Please, give your contribution instead: any help is more than welcome! 

## Installation
**Node**
```sh
npm install @CodiceFiscaleJS/node --save
```

## Usage
```js
var {compute, reverse, validate} = require('@CodiceFiscaleJS/node');

const cf = compute({
    nome: 'Marco',
    cognome: 'Rossi',
    sesso: 'M',
    comune: 'Milano',
    provincia: 'MI',
    giorno: 1,
    mese: 1,
    anno: 1980   
}) // RSSMRC80A01F205Z


const userData = reverse("RSSMRC80A01F205Z")
/
*{
    nome: 'Marco',
    cognome: 'Rossi',
    sesso: 'M',
    comune: 'Milano',
    provincia: 'MI',
    giorno: 1,
    mese: 1,
    anno: 1980   
}
*/

const valid = isValid("RSSMRC80A01F205Z") // true
const notValid = isValid("ABCDEF12G34H567I") //false
```

## TODO

* Docs
* Add Typescript types

---
_Source: https://npm.io/package/codicefiscalejs-node · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
