cpf-rg-validator

1.0.0 • Public • Published

Instalation

yarn add cpf-rg-validator

Usage

Accepts masked string (xxx.xxx.xxx-xx), unmasked (xxxxxxxxxxx) or plain number

const Validator = require('cpf-rg-validator');
 
Validator.cpf('725.701.128-10'); // true
Validator.cpf('111.111.222-10'); // false
 
Validator.rg('91122534-1'); // true
Validator.rg('91122534'); // false

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    15
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    15

Package Sidebar

Install

npm i cpf-rg-validator

Weekly Downloads

15

Version

1.0.0

License

ISC

Unpacked Size

40.3 kB

Total Files

5

Last publish

Collaborators

  • brodskyy88