Socket
Socket
Sign inDemoInstall

br-validations

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

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


Version published
Weekly downloads
5.3K
decreased by-17.31%
Maintainers
1
Install size
80.0 kB
Created
Weekly downloads
 

Changelog

Source

0.3.1 (2016-11-10)

Bug Fixes

  • ie: fix validation for IE of Rondonia (f4eabf9), closes #11
  • package.json fixing installation problem through npm (4050fd0), closes #9

<a name"0.3.0"></a>

Readme

Source

br-validations

npm version Bower version Build Status Coverage Status

NPM

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

PIS/PASEP

	var BrV = require('./br-validations');
	var pis = '120.5825.883-7';
	var isValid = BrV.pis.validate(pis);

Contributing

We'd love for you to contribute to our source code! We just ask for you to:

  • Follow the commit conventions of conventional-changelog described in conventional-conventions
  • Write tests for the new feature or bug fix that you are solving
  • Ensure all tests pass before send the pull-request (Use: $ gulp test-coverage)

Keywords

FAQs

Last updated on 10 Nov 2016

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc