br-validations

WebJar for br-validations

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

br-validations
Last Version

Last Version

0.3.1
Release Date

Release Date

Type

Type

jar
Description

Description

br-validations
WebJar for br-validations
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/the-darc/br-validations

Download br-validations

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/br-validations/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>br-validations</artifactId>
    <version>0.3.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/br-validations/
implementation 'org.webjars.npm:br-validations:0.3.1'
// https://jarcasting.com/artifacts/org.webjars.npm/br-validations/
implementation ("org.webjars.npm:br-validations:0.3.1")
'org.webjars.npm:br-validations:jar:0.3.1'
<dependency org="org.webjars.npm" name="br-validations" rev="0.3.1">
  <artifact name="br-validations" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='br-validations', version='0.3.1')
)
libraryDependencies += "org.webjars.npm" % "br-validations" % "0.3.1"
[org.webjars.npm/br-validations "0.3.1"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

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)

Versions

Version
0.3.1
0.3.0