npm

rut-validator-ca

1.0.1 • Public • Published

Rut Validator

Rut validator is a javascript library for validate chilean ID.

Installation

npm install --save rut-validator-ca

Usage

const rutValidator = require('rut-validator-ca');

rutValidator('5998595-7')   ==> True
rutValidator('5.998.595-7') ==> true
rutValidator('5998595-2')   ==> False
rutValidator('5.998.595-2') ==> False
rutValidator('5998595-')    ==> False
rutValidator('5998595')     ==> False

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i rut-validator-ca

Weekly Downloads

2

Version

1.0.1

License

ISC

Unpacked Size

3.64 kB

Total Files

4

Last publish

Collaborators

  • carellano1995