Handy module to generate and validate uruguayan identification numbers
import { validateIdentificationNumber } from 'ciuy';
const valid = '11111111';
validateIdentificationNumber(valid);
// => true
const invalid = '11111112';
validateIdentificationNumber(invalid);
// => false
import { generateRandomNumber } from 'ciuy';
generateRandomNumber();
// => "72289541"
generateRandomNumber();
// => "88547325"
import { generateValidationDigit } from 'ciuy';
generateValidationDigit(1111111);
// => 1
- Deno support
- Publish docs somewhere (maybe not, module is tiny)
- Create a header img
- Use a
postinstall
message in theci_node
library to announce this one. - Move this to itss own repo.
- Use a banner in the
ci_node
lib readme linking to this.
Shout out to @picandocodigo for the original Ruby and Browser JS code.