1.2.0 • Published 3 years ago

cuit v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

cuit

Installation

npm install cuit

Usage

Validate CUIT/CUIL

import { is } from "cuit";

const isValid = is("20-21834641-4"); // => true

Guess CUIT/CUIL based on someone's DNI

import { guess } from "cuit";

const dni = "21834641";

// "M" for male, "F" for female and "E" for business / "Persona Jurídica"
const cuit = guess(dni, "M"); // => 20-21834641-4

Format CUIT/CUIL

import { format } from "cuit";

const formatted = format("20218346414", "."); // => 20.21834641.4
1.2.0

3 years ago

1.1.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago