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

cpfgenerator

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cpfgenerator

Generate and validate CPF ( Brazilian tax document )

latest
Source
npmnpm
Version
1.1.3
Version published
Weekly downloads
7
250%
Maintainers
1
Weekly downloads
 
Created
Source

CPF generator and validator / Gerador e validador de CPF

Generate and validate CPF ( Brazilian tax document )

Installation / Instalação

npm i cpfgenerator

How to use / Como utilizar

import the item / importar o item

var ClassCPF = require('cpfgenerator');

create a new var from the imported class / criar uma nova var para a classe importada

var cpf = new ClassCPF();

generate a new CPF / gera um novo CPF

var newCPF = cpf.generate();

validate a given CPF (String) / valida um CPF (String)

var isValidCPF = cpf.validate("12345678901");

mask a given CPF (String) / aplica a máscara no CPF (String)

var maskedCPF = cpf.mask("12345678901"); // 123.456.789-01

unmask a given CPF (String) / remove a máscara do CPF (String)

var unmaskedCPF = cpf.unmask("123.456.789-01"); // 12345678901

Simple like that =) / Simple assim =)

Donate

If you think this module was useful to you, consider donating / Se você achou este plugin útil, considere fazer um doação

Donate

Keywords

CPF

FAQs

Package last updated on 10 Apr 2019

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