@lacussoft/cpf-val
v2.0.2
Published
Utility function to validate CPF (Brazilian personal ID)
Maintainers
Readme

Utility function to validate CPF (Brazilian personal ID).
Browser Support
|
|
|
|
|
|
|
|--- | --- | --- | --- | --- | --- |
| Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | 11 ✔ |
Installation
# using NPM
$ npm install --save @lacussoft/cpf-val
# using Bun
$ bun add @lacussoft/cpf-valImport
// ES Modules
import cpfVal from '@lacussoft/cpf-val'
// Common JS
const cpfVal = require('@lacussoft/cpf-val')or import it through your HTML file, using CDN:
<script src="https://cdn.jsdelivr.net/npm/@lacussoft/cpf-val@latest/dist/cpf-val.min.js"></script>Usage:
cpfVal('12345678909') // returns 'true'
cpfVal('123.456.789-09') // returns 'true'
cpfVal('12345678910') // returns 'false'
^^Contribution & Support
We welcome contributions! Please see our Contributing Guidelines for details. But if you find this project helpful, please consider:
- ⭐ Starring the repository
- 🤝 Contributing to the codebase
- 💡 Suggesting new features
- 🐛 Reporting bugs
License
This project is licensed under the MIT License - see the LICENSE file for details.
Changelog
See CHANGELOG for a list of changes and version history.
Made with ❤️ by Lacus Solutions
