https://github.com/gabeidx/deno-cpf
🇧🇷 Format, validate and generate CPF numbers in Deno
https://github.com/gabeidx/deno-cpf
brasil brazil cpf deno denoland formatting generator validation
Last synced: about 2 months ago
JSON representation
🇧🇷 Format, validate and generate CPF numbers in Deno
- Host: GitHub
- URL: https://github.com/gabeidx/deno-cpf
- Owner: gabeidx
- License: mit
- Created: 2021-02-10T16:45:24.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-09-28T13:21:28.000Z (over 3 years ago)
- Last Synced: 2025-02-17T19:45:25.166Z (2 months ago)
- Topics: brasil, brazil, cpf, deno, denoland, formatting, generator, validation
- Language: TypeScript
- Homepage: https://deno.land/x/cpf
- Size: 29.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Contributing: contributing.md
- License: license
Awesome Lists containing this project
README
# CPF
Format, validate and generate CPF numbers.
```ts
import { validate, format, generate } from 'https://deno.land/x/cpf/mod.ts'// Validation
const valid = validate('363.552.510-30'); // true// Formating
const formatted = format(36355251030) // 363.552.510-30// Generation
const generated = generate(); // randomly generated, valid CPF
```### License
[MIT License](/license)