# cpf-rg-validator

> Validates CPF and RG identity numbers (Brazil)

Latest version **1.0.0** (published 2019-09-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install cpf-rg-validator
pnpm add cpf-rg-validator
yarn add cpf-rg-validator
bun add cpf-rg-validator
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-09-06 |
| First published | 2019-09-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 39.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Yael Brodsky |
| Maintainers | brodskyy88 |

## Links

- npm: https://www.npmjs.com/package/cpf-rg-validator
- Repository: https://github.com/ybrodsky/cpf-rg-validator
- Homepage: https://github.com/ybrodsky/cpf-rg-validator#readme
- Issues: https://github.com/ybrodsky/cpf-rg-validator/issues
- npm.io page: https://npm.io/package/cpf-rg-validator

## Recent versions

- 1.0.0 (latest) — 2019-09-06

## README

### Instalation

`yarn add cpf-rg-validator`

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

```javascript
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
```

---
_Source: https://npm.io/package/cpf-rg-validator · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
