@brazilian-utils/validators

A collection of useful validators

Stats

StarsIssuesVersionUpdatedCreatedSize
@brazilian-utils/validators
200.1.93 years ago3 years agoMinified + gzip package size for @brazilian-utils/validators in KB

Readme

@brazilian-utils/validators

A collection of useful validators

Installation

# Yarn
yarn add @brazilian-utils/validators

# npm
npm install @brazilian-utils/validators --save

# UMD
<script type='text/javascript' src='https://unpkg.com/@brazilian-utils/validators/dist/index.umd.js'></script>

Usage

// named imports
import { isValidCpf, isValidCnpj } from '@brazilian-utils/validators';

// UMD
validators.isValidCpf('478457478157') // false
validators.isValidCnpj('4784574781574422') // false

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.