1.0.2 • Published 7 months ago
joaovinezof-js-tools v1.0.2
JS Tools
A TypeScript library with useful tools, such as a CPF generator, currency converter, date and percentage calculator. Easy to use and tested with Jest!
📦 Installation
Use npm or another installer to install the library:
npm install joaovinezof-js-tools
🚀 Features
1. CPF Generator
Generates a valid CPF with or without formatting.
Import
import { generateCpf } from 'joaovinezof-js-tools';
Use
- No formatting (default):
const cpf = generateCpf();
console.log(cpf); // Exemplo: 12345678909
- Formatting:
const cpf = generateCpf({ formatted: true });
console.log(cpf); // Exemplo: 123.456.789-09