Formatear, calcular el dígito verificador y probar la validez de un rut
format rut to a one of Cleared, Simple or ThousandsSeparated format Cleared "11.111.111-1" == "111111111" format Simple "11.111.111-1" == "11111111-1" format ThousandsSeparated "11111111-1" == "11.111.111-1"
Compute the virifier digit for a rut, it must be a cleared rut without verifier digit computeDv "11111111"
Test if a rut string is valid isValidRut 2 "11.111.111-1"
Types for the formatter format Cleared "11.111.111-1" == "111111111" format Simple "11.111.111-1" == "11111111-1" format ThousandsSeparated "11111111-1" == "11.111.111-1"