New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

validar-cpf

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

validar-cpf

Validador de CPF

latest
Source
npmnpm
Version
3.1.1
Version published
Weekly downloads
1.4K
0.35%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

cpf

FAQs

Package last updated on 10 Sep 2024

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