rutility
v1.0.18
Published
A JavaScript library for validating and formatting Chilean RUTs (Rol Único Tributario). It provides functions to add/remove dots and dashes, validate formats, and calculate check digits
Downloads
278
Maintainers
Readme
RUTility
Chilean RUT Validation and Formatting Library
A library for validating and formatting the Chilean RUT (Rol Único Tributario). This library provides functions to format the RUT with dots and dashes, as well as to validate its format and check digit.
Installation
You can install the library using npm:
npm install rutility
Usage
Import in a Node.js Project
const { format, calculateDv, isValidRut, isFormat } = require('rutility');
Import in an ES6 Module
import { format, calculateDv, isValidRut, isFormat } from 'rutility';
Formatting Functions
Validation Functions
Format Validations
Contributing
If you wish to contribute to this project, please open an issue or submit a pull request.
Main Developer
License
This project is licensed under the MIT License.