@brazilian-utils/generate-cpf

Generates a valid CPF

Stats

StarsIssuesVersionUpdatedCreatedSize
@brazilian-utils/generate-cpf
200.1.53 years ago3 years agoMinified + gzip package size for @brazilian-utils/generate-cpf in KB

Readme

@brazilian-utils/generate-cpf

Generates a valid CPF

Installation

# Yarn
yarn add @brazilian-utils/generate-cpf

# npm
npm install @brazilian-utils/generate-cpf --save

# UMD
<script type='text/javascript' src='https://unpkg.com/@brazilian-utils/generate-cpf/dist/index.umd.js'></script>

Usage

import generateCpf from '@brazilian-utils/generate-cpf';

generateCpf(); // return a valid CPF
generateCpf({ state: 'BA' }); // return a valid CPF from Bahia state
generateCpf({ state: 'RJ' }); // return a valid CPF from Rio de Janeiro state

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.