js-format-cpf
TypeScript icon, indicating that this package has built-in type declarations

1.4.0 • Public • Published

js-format-cpf

Lib to format CPF

Javascript example:

const cpf = require('js-format-cpf');  
console.log(cpf.formatCPF("49075215029"))

Output: 490.752.150-29

Typescript example:

import { formatCPF } from 'js-format-cpf'
console.log(formatCPF("49075215029")

Output: 490.752.150-29

Readme

Keywords

Package Sidebar

Install

npm i js-format-cpf

Weekly Downloads

20

Version

1.4.0

License

ISC

Unpacked Size

4.06 kB

Total Files

10

Last publish

Collaborators

  • juliosilvacwb