Dependency-free, Chilean RUT utils for Node.js and browsers (transpiled).
This library has been tested with Node.js 12, 14 and NPM 6.
npm i @fiquu/cl-rut
Import it into you projects as '@fiquu/cl-rut'
:
import {
cleanParts,
calculate,
verifier,
validate,
format,
digits,
clean,
} from '@fiquu/cl-rut';
import clRut from '@fiquu/cl-rut';
const value = '22222222';
const calculated = calculate(value);
const verifier = verifier(value);
const isValid = validate(value);
const formatted = format(value);
const parts = cleanParts(value);
const digits = digits(value);
const clean = clean(value);
Please see the documentation page for more details.