3.1.1 • Published 10 months ago

validar-cpf v3.1.1

Weekly downloads
940
License
MIT
Repository
github
Last release
10 months ago

validar-cpf

Validates Brazilian CPF document number using the "módulo 11" algorithm.

Anything in the input string that is not a number will be removed during the validation, so there is no need to sanitize the input beforehand.

Actions Status npm version Known Vulnerabilities

Install

npm install --save validar-cpf

Usage

const validateCpf = require('validar-cpf');

if (validateCpf('123.456.789-87')) {
	console.log('Valid CPF');
}

Package size

Install size Minified size Minified + gzip size

License

MIT

3.1.1

10 months ago

3.1.0

1 year ago

3.0.0

2 years ago

2.1.2

6 years ago

2.1.1

6 years ago

2.1.0

6 years ago

2.0.4

6 years ago

2.0.2

7 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.1.3

11 years ago

1.1.2

11 years ago

1.1.1

11 years ago

1.1.0

11 years ago

1.0.0

11 years ago