rut-text-mask

A plugin for the wrapper on top of another plugin. All of this to facilitate RUT validation.


Keywords
Mask, RUT, Chile, Document, Input, Input Mask, React, Vue, text-mask, JS
License
ISC
Install
npm install rut-text-mask@1.0.1

Documentation

:trollface: 💩 Welcome to rut-text-mask!

Designed for use with text-mask plugin:

https://github.com/text-mask/text-mask

Install Package

npm i -S rut-text-mask
or
yarn add rut-text-mask

Import Plugin

import RutTextMask from 'rut-text-mask';

Basic Usage

<MaskedInput
    mask={RutTextMask}
/>

Tested with the following RUTs:

3179367K
39577747
127314454
20483086K

5531681-3
21128922-8

3.179.367-K
21.128.922-8
21.128.922-k