# biobe-validators

> validacao de cpf e cnpj do portal biobe

Latest version **1.0.2** (published 2020-02-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install biobe-validators
pnpm add biobe-validators
yarn add biobe-validators
bun add biobe-validators
```

## 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.2 |
| Published | 2020-02-18 |
| First published | 2020-02-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | “Victor Marques |
| Maintainers | vituhmax |
| Keywords | cpf, cnpj, validacao, portal, biobe, validation, brasil, brazil |

## Links

- npm: https://www.npmjs.com/package/biobe-validators
- Repository: https://github.com/dinopk/biobe_validators
- Homepage: https://github.com/dinopk/biobe_validators#readme
- Issues: https://github.com/dinopk/biobe_validators/issues
- npm.io page: https://npm.io/package/biobe-validators

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2020-02-18
- 1.0.1 — 2020-02-18
- 1.0.0 — 2020-02-18

## README

# biobe-validators

## Getting started

#### Install with NPM

```
$ npm install biobe-validators --save
```

#### Install with Yarn

```
$ yarn add biobe-validators
```

#### How to use with ES6

#### CPF

```js
import { cpfValidation } from "biobe-validators";

// No points or hyphens
cpfValidation("29018170097"); // false
cpfValidation("12312345600"); // false

// With points or hyphens
cpfValidation("123.123.456-00"); // false
```

#### CNPJ

```js
import { cnpjValidation } from "biobe-validators";

// No points or hyphens
cnpjValidation("54334068000136"); // true
cnpjValidation("00111222000100"); // false

// With points or hyphens
cnpjValidation("54.334.068/0001-36"); // true
```

#### How to use with ES5

```js
const validator = require("biobe-validators");

// No points or hyphens
validator.cnpjValidation("54334068000136"); // true
validator.cnpjValidation("00111222000100"); // false
validator.cpfValidation("29018170097"); // true
validator.cpfValidation("12312345600"); // false

// With points or hyphens
validator.cnpjValidation("54.334.068/0001-36"); // true
validator.cpfValidation("123.123.456-00"); // false
```

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