A Text Mask addon to format the Chilean National Identifier Number (RUT)
yarn add text-mask-rut
React Example
import React from 'react'
import MaskedInput from 'react-text-mask'
import createRutMask from 'text-mask-rut';
const rutMask = createRutMask();
export default () => (
<div>
<MaskedInput
mask={rutMask}
/>
</div>
)
Vanilla JS Example
var myInput = document.querySelector('.maskedInput');
vanillaTextMask.maskInput({
inputElement: myInput,
mask: createRutMask(),
});
There isn't additional steps to:
yarn install
But always check the tests and lint before to commit or PR
-
0.0.3
- Extract split functionality
- Reformat for codeclimate
-
0.0.2
- Fix UMD build
- Reformat main code
- Add integrations with travis, coveralls, codeclimate and NodeSecurity
- Add example
- Improve README
-
0.0.1
- Work in progress
Distributed under the MIT license. See LICENSE
for more information.
- Fork it (https://github.com/LuisUrrutia/text-mask-rut/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Check the tests and lint (
yarn lint && yarn test
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request