🎉 Rut.ts 2.1.0 is released!

Features
Decompose

🪚 Decompose a RUT

Split a RUT into its body and verifier digit.

import { decompose } from 'rut.ts';
 
const { body, verifier } = decompose('12.345.678-9');
console.log(body); // Output: '12345678'
console.log(verifier); // Output: '9'

Posible use cases

  • Store RUT components separately in a database.
  • Compare RUT bodies without verifier digits.