Gathering detailed insights and metrics for @lacussoft/cpf-gen
Gathering detailed insights and metrics for @lacussoft/cpf-gen
Gathering detailed insights and metrics for @lacussoft/cpf-gen
Gathering detailed insights and metrics for @lacussoft/cpf-gen
Straight forward JavaScript package to handle CPF data (Brazilian personal ID).
npm install @lacussoft/cpf-gen
Typescript
Module System
Node Version
NPM Version
cpf-utils@1.4.2
Updated on Apr 19, 2025
@lacussoft/cpf-val@1.4.1
Updated on Apr 19, 2025
@lacussoft/cpf-gen@1.5.1
Updated on Apr 19, 2025
cpf-utils@1.4.1
Updated on Apr 19, 2025
@lacussoft/cpf-fmt@1.4.1
Updated on Apr 19, 2025
cpf-utils@1.4.0
Updated on Apr 18, 2025
JavaScript (80.88%)
TypeScript (19.12%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
128 Commits
2 Watchers
1 Branches
1 Contributors
Updated on Apr 26, 2025
Latest Version
1.5.1
Package Id
@lacussoft/cpf-gen@1.5.1
Unpacked Size
104.90 kB
Size
41.66 kB
File Count
9
NPM Version
10.8.2
Node Version
20.19.0
Published on
Apr 19, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
3
Utility function to generate valid CPF (Brazilian ID document).
![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
---|---|---|---|---|---|
Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | 11 ✔ |
1# using NPM 2$ npm install --save @lacussoft/cpf-gen 3 4# using Bun 5$ bun add @lacussoft/cpf-gen
1// ES Modules 2import cpfGen from '@lacussoft/cpf-gen' 3 4// Common JS 5const cpfGen = require('@lacussoft/cpf-gen')
or import it through your HTML file, using CDN:
1<script src="https://cdn.jsdelivr.net/npm/@lacussoft/cpf-gen@latest/dist/cpf-gen.min.js"></script>
1let cpf = cpfGen() // returns '47844241055' 2 3cpf = cpfGen({ // returns '005.265.352-88' 4 format: true 5}) 6 7cpf = cpfGen({ // returns '52825091138' 8 prefix: '528250911' 9}) 10 11cpf = cpfGen({ // returns '528.250.911-38' 12 prefix: '528250911', 13 format: true 14})
1cpfGen({
2 format: false, // indicates if output should be formatted
3 prefix: '' // if you have a CPF initials and want to complete it with valid digits.
4}) // The string provided must contain between 0 and 9 digits!
No vulnerabilities found.
Reason
30 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 0/24 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More