mx-document-generator

Library to generate RFC and CURP

Usage no npm install needed!

<script type="module">
  import mxDocumentGenerator from 'https://cdn.skypack.dev/mx-document-generator';
</script>

README

mx-document-generator

Made 100% in Typescript

Algorithm for getting RFC(Federal Taxpayer Register) and CURP(Unique Population Registry Code) for México, implemented in Typescript.

Note: The last character of the CURP is randomly picked at the moment of generating the curp the first time by national authorities, so we cannot calcute it realiably.

How to install:

npm i --save mx-document-generator

The official documents are in the "docs" folder.