Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

br-validations

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

br-validations

A library of validations applicable to several Brazilian data like I.E., CNPJ, CPF and others

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6.5K
decreased by-7.95%
Maintainers
1
Weekly downloads
 
Created
Source

br-validations

A library of validations applicable to several Brazilian data like I.E., CNPJ, CPF and others.

Instalation

With npm

    npm install --save br-validations

With bower

    bower install --save br-validations

Runing tests

	gulp test

Validations

Inscrição Estadual

	var BrV = require('./br-validations');
	var uf = 'PE';
	var ie = '1321418-40';
	var isValid = BrV.ie(uf).validate(ie);

See: Conferência de Inscrições Estaduais

CPF

	var BrV = require('./br-validations');
	var cpf = '219.841.712-08';
	var isValid = BrV.cpf.validate(cpf);

CNPJ

	var BrV = require('./br-validations');
	var cnpj = '10.157.471/0001-61';
	var isValid = BrV.cnpj(uf).validate(cnpj);

RG

Not implemented yet

Keywords

FAQs

Package last updated on 26 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc