New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cpf-check

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cpf-check - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

2

package.json
{
"name": "cpf-check",
"version": "2.0.1",
"version": "2.0.2",
"description": "Validador de CPF Moderno, Isomórfico e Super Leve.",

@@ -5,0 +5,0 @@ "main": "dist/cpf.min.js",

@@ -42,10 +42,15 @@ # cpf-check

CPF(algumCpf);
// true
const { valid, error, code } = CPF(algumCpf);
// valid => true
// error => false
// code => 'VALID'
CPF.validate(algumCpf);
// true
const resultado = CPF.validate(algumCpf);
// resultado => { valid: true, error: false, code: 'VALID' }
validate(algumCpf);
// true
const resultado = validate('não-cpf');
// resultado => { valid: false, error: true, code: 'LENGTH }
const resultado = validate('12345678910');
// resultado => { valid: false, error: true, code: 'INVALID' }
```

@@ -52,0 +57,0 @@

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