Rut Helpers
A small collection of helpers to validate and format strings to RUT (Chilean DNI).
Installation
npm install rut-helpers --save
or with Yarn
yarn add rut-helpers
Use
// You can import everything; // Or import only what you need.; // Or with nodevar rutHelpers = ;
Validating RUTs
rutHelpers;// false rutHelpers;// true rutHelpers;// true
Formatting strings as RUTs
rutHelpers;// 7.618.285-K
Cleaning RUTs
rutHelpers;// 7618285K
Contributing
If you want to add functionality please go to the contributing
Credits
Thank you contributors!
rut-helpers is maintained by platanus.
License
Potassium is © 2017 platanus, spa. It is free software and may be redistributed under the terms specified in the LICENSE file.