https://github.com/gabeins/deno-cpf
🇧🇷 Format, validate and generate CPF numbers in Deno
https://github.com/gabeins/deno-cpf
brasil brazil cpf deno denoland formatting generator validation
Last synced: 22 days ago
JSON representation
🇧🇷 Format, validate and generate CPF numbers in Deno
- Host: GitHub
- URL: https://github.com/gabeins/deno-cpf
- Owner: gabeins
- License: mit
- Created: 2021-02-10T16:45:24.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-09-28T13:21:28.000Z (over 4 years ago)
- Last Synced: 2026-05-19T04:59:10.779Z (about 1 month 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: 1
- 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)