@fiquu/cl-rut

Dependency-free, Chilean RUT utils for Node.js and browsers (transpiled).
Requirements
This library has been tested with Node.js v12.x and NPM v6.x.
Installation
npm i @fiquu/cl-rut
Usage
Node.js
Require or import it into you projects as '@fiquu/cl-rut':
const clRut = require('@fiquu/cl-rut');
import clRut from '@fiquu/cl-rut';
Examples
import clRut from '@fiquu/cl-rut';
const value = '22222222';
const calculated = clRut.calculate(value);
const verififer = clRut.verifier(value);
const isValid = clRut.validate(value);
const formatted = clRut.format(value);
const digits = clRut.digits(value);
const clean = clRut.clean(value);
Documentation
Please see the documentation page for more details.