Socket
Socket
Sign inDemoInstall

global-doc-ident

Package Overview
Dependencies
0
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.4 to 1.0.5

14

br/index.js

@@ -6,3 +6,3 @@ /**

* @ Modified by: Your name
* @ Modified time: 2021-01-13 10:51:56
* @ Modified time: 2021-01-14 13:21:30
*/

@@ -20,4 +20,4 @@ /*

type: 'CPF',
doc: doc,
msk: doc.replace(/(\d{3})(\d{3})(\d{3})(\d{2})/, "$1.$2.$3-$4"),
number: doc,
masked: doc.replace(/(\d{3})(\d{3})(\d{3})(\d{2})/, "$1.$2.$3-$4"),
valid: valid = require('./CPF')(doc)

@@ -27,4 +27,4 @@ }

type: 'CNPJ',
doc: doc,
msk: doc.replace(/^(\d{2})(\d{3})(\d{3})(\d{4})(\d{2})/, "$1.$2.$3/$4-$5"),
number: doc,
masked: doc.replace(/^(\d{2})(\d{3})(\d{3})(\d{4})(\d{2})/, "$1.$2.$3/$4-$5"),
valid: valid = require('./CNPJ')(doc)

@@ -34,4 +34,4 @@ }

type: 'UNKNOW',
doc: doc,
msk: '?'.repeat(doc.length),
number: doc,
masked: '?'.repeat(doc.length),
valid: false

@@ -38,0 +38,0 @@ }

{
"name": "global-doc-ident",
"version": "1.0.4",
"version": "1.0.5",
"description": "\"JavaScript identifier and validator for the number of Brazilian documents such as CPF and CNPJ returned in object as formatted version.\"",

@@ -14,3 +14,10 @@ "main": "index.js",

"DOCUMENT",
"ID"
"ID",
"JavaScript",
"Node.js",
"Browser",
"MercadoPago",
"PagSeguro",
"PayPal",
"API"
],

@@ -17,0 +24,0 @@ "repository": {

@@ -89,4 +89,16 @@ # br-doc-identfier

About author: [Alailson Barbosa Ribeiro](https://www.alailson.com.br)
============
**Join this Project
If you are interested in contributing with new checks for other types of documents related to Brazil and/or other countries please contact GitHub, to find out how to get involved in the project.
Se você tem interesse em contribuir com novos cheques para outros tipos de documentos relacionados ao Brasil e/ou outros países, entre em contato com o GitHub, para saber como se envolver no projeto.
Si está interesado en aportar nuevos cheques a otro tipo de documentos relacionados con Brasil y/u otros países, comuníquese con GitHub, para averiguar cómo involucrarse en el proyecto.
Si vous souhaitez contribuer de nouveaux contrôles à d'autres types de documents liés au Brésil et/ou à d'autres pays, contactez GitHub, pour savoir comment vous impliquer dans le projet.
Wenn Sie neue Schecks für andere Arten von Dokumenten in Bezug auf Brasilien und/oder andere Länder einreichen möchten, wenden Sie sich an GitHub, um herauszufinden, wie Sie sich an dem Projekt beteiligen können.
About Creator: [Alailson Barbosa Ribeiro](https://www.alailson.com.br)
=============
![alt text](https://secure.gravatar.com/avatar/f4a6fbf1b704b29c4236d964f5f5280c "Alailson Barbosa Ribeiro")
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