1.0.1 • Published 1 year ago

dni-converter v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

��## Convert the sum of your Argentine DNI (document national of identity) and gender to CUIL (Unique Labor Identification Code)

ENGLISH

This project helps with the tedious task of getting someone's CUIL with predesigned mathematical functions to be applied to the DNI and get the person's CUIL

  • The Unique Labor Identification Code (CUIL) is necessary at the beginning of a work activity and is also used to collect benefits provided by ANSES (National Social Security Administration) and/or carry out procedures with other entities that require it
  • It consists of the combination of a person's DNI and two new numbers added to the left of the DNI and a new one to the right. These three new numbers are calculated based on a mathematical formula created by ANSES
  • There are rare cases in which some CUIL cannot be calculated because they are assigned by ANSES without following the formula that they themselves created decades ago :/ but as I mentioned they are rare cases so still I saw myself at some point in need of a conversion function like this
  • If the DNI has seven digits, a zero will be added to the number to reach eight digits, example: 1234567 will be converted to 01234567

Use example!

N|Solid

Use steps

It's very simple, just follow this steps! :D

  1. Run npm i dni-converter in a terminal
  2. Import "dniConverter" function from this package
  3. Get the DNI and gender of the person you want to get their CUIL
  4. Use "dniConverter" function passing the data already mentioned in this order as parameters, first DNI (as number) and second the gender (as string, 'male' or 'female')

Find a bug?

If you found an issue or would like to submit an improvement to this project, please submit an issue using the issues tab above. If you would like to submit a PR with a fix, reference the issue you created!

ESPA�OL

Convierte la suma de tu DNI argentino (documento nacional de identidad) y g�nero a CUIL (C�digo �nico de Identificaci�n Laboral)

Este proyecto ayuda en la tediosa tarea de sacar el CUIL de una persona con funciones matem�ticas predise�adas para aplicar al DNI y obtener el CUIL de la persona

  • El C�digo �nico de Identificaci�n Laboral (CUIL) es necesario al inicio de una actividad laboral y tambi�n se utiliza para cobrar las prestaciones que brinda la ANSES (Administraci�n Nacional del Seguro Social) y/o realizar tr�mites con otras entidades que as� lo requieran
  • Consiste en la combinaci�n del DNI de una persona y dos nuevos n�meros a�adidos a la izquierda del DNI y uno nuevo a la derecha. Estos tres nuevos n�meros se calculan con base en una f�rmula matem�tica creada por ANSES
  • Hay casos raros en los que no se pueden calcular algunos CUIL porque son asignados por ANSES sin seguir la f�rmula que ellos mismos crearon hace d�cadas :/ pero como mencion� son casos raros as� que igual me vi en alg�n momento necesitando una funcion conversora
  • Si el DNI tiene siete d�gitos, se a�adir� un cero al n�mero hasta llegar a los ocho d�gitos, ejemplo: 1234567 se convertir� en 01234567

�Ejemplo de uso!

N|Solid

Pasos para su uso

�Es muy simple, solo sigue estos pasos! :D

  1. Correr npm i dni-converter en una terminal
  2. Importar la funcion "dniConverter" desde este paquete
  3. Consigue el DNI y sexo de la persona que quieres sacar su CUIL
  4. Utilizar la funci�n "dniConverter" pasando los datos ya mencionados en este orden como par�metros, primero DNI (como n�mero) y segundo el g�nero (como cadena, 'male' o 'female')

�Encontraste un error?

Si encontr� un problema o desea enviar una mejora a este proyecto, deje un "issue" (problema) usando la pesta�a de "issues" de arriba. �Si desea enviar un PR con una correcci�n, haga referencia al "issue" que ha creado!

1.0.1

1 year ago

1.0.0

1 year ago