Installations
npm install @brazilian-utils/is-valid-cpf
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
11.12.0
NPM Version
lerna/3.16.2/node@v11.12.0+x64 (darwin)
Score
75.7
Supply Chain
73.3
Quality
79
Maintenance
100
Vulnerability
100
License
Releases
Release 1.0.0-rc.12
Published on 27 Oct 2020
Release 1.0.0-rc.11
Published on 25 Aug 2020
Release 1.0.0-rc.10
Published on 27 Jul 2020
Release 1.0.0-rc.9
Published on 09 Jul 2020
Release 1.0.0-rc.8
Published on 17 Jun 2020
Release 1.0.0-rc.7
Published on 05 May 2020
Contributors
Languages
TypeScript (99.43%)
JavaScript (0.57%)
Developer
Download Statistics
Total Downloads
3,596,127
Last Day
22
Last Week
1,158
Last Month
14,093
Last Year
200,819
GitHub Statistics
1,551 Stars
640 Commits
110 Forks
30 Watching
11 Branches
25 Contributors
Bundle Size
1.02 kB
Minified
557.00 B
Minified + Gzipped
Package Meta Information
Latest Version
1.0.0-alpha.3
Package Id
@brazilian-utils/is-valid-cpf@1.0.0-alpha.3
Size
4.29 kB
NPM Version
lerna/3.16.2/node@v11.12.0+x64 (darwin)
Node Version
11.12.0
Publised On
23 Jul 2019
Total Downloads
Cumulative downloads
Total Downloads
3,596,127
Last day
-95.7%
22
Compared to previous day
Last week
-72.6%
1,158
Compared to previous week
Last month
-3.4%
14,093
Compared to previous month
Last year
5.3%
200,819
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
@brazilian-utils/is-valid-cpf
Check if CPF is valid.
See our website http://brazilian-utils.github.io for more information or the issues associated with this package.
Install
Using NPM:
1npm install @brazilian-utils/is-valid-cpf --save
using Yarn
1yarn add @brazilian-utils/is-valid-cpf
or using
1<script 2 type="text/javascript" 3 src="https://unpkg.com/@brazilian-utils/is-valid-cpf/dist/is-valid-cpf.umd.production.js" 4></script>
Usage
If you load from a tag, you can use isValidCpf
global. If you use ES6 with npm, you can write import isValidCpf from '@brazilian-utils/is-valid-cpf'
. If you use ES5 with npm, you can write var isValidCpf = require('@brazilian-utils/is-valid-cpf')
.
1isValidCpf('94389575104'); // true 2isValidCpf('943.895.751-04'); // true 3isValidCpf('93319545101'); // false 4isValidCpf('933.195.451-01'); // false
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
7 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 5
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/brazilian-utils/brazilian-utils/build.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/brazilian-utils/brazilian-utils/build.yml/main?enable=pin
- Info: 0 out of 2 GitHub-owned GitHubAction dependencies pinned
- Info: 1 out of 1 npmCommand dependencies pinned
Reason
Found 2/9 approved changesets -- score normalized to 2
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/build.yml:1
- Info: no jobLevel write permissions found
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 24 are checked with a SAST tool
Reason
52 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92
- Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c
- Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq
- Warn: Project is vulnerable to: GHSA-5h7x-68wj-jhwc
- Warn: Project is vulnerable to: GHSA-p3vf-v8qc-cwcr
- Warn: Project is vulnerable to: GHSA-gx9m-whjm-85jf
- Warn: Project is vulnerable to: GHSA-mmhx-hmjr-r674
- Warn: Project is vulnerable to: GHSA-pfrx-2q88-qq97
- Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j
- Warn: Project is vulnerable to: GHSA-896r-f27r-55mw
- Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h
- Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9
- Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm
- Warn: Project is vulnerable to: GHSA-4r62-v4vq-hr96
- Warn: Project is vulnerable to: GHSA-5v2h-r2cx-5xgj
- Warn: Project is vulnerable to: GHSA-rrrm-qjm4-v8hf
- Warn: Project is vulnerable to: GHSA-7wpw-2hjm-89gp
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h
- Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g
- Warn: Project is vulnerable to: GHSA-5fw9-fq32-wv5p
- Warn: Project is vulnerable to: GHSA-px4h-xg32-q955
- Warn: Project is vulnerable to: GHSA-3j8f-xvm3-ffx4
- Warn: Project is vulnerable to: GHSA-4p35-cfcx-8653
- Warn: Project is vulnerable to: GHSA-7f3x-x4pr-wqhj
- Warn: Project is vulnerable to: GHSA-jpp7-7chh-cf67
- Warn: Project is vulnerable to: GHSA-q6wq-5p59-983w
- Warn: Project is vulnerable to: GHSA-j9fq-vwqv-2fm2
- Warn: Project is vulnerable to: GHSA-pqw5-jmp5-px4v
- Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9
- Warn: Project is vulnerable to: GHSA-gj77-59wh-66hg
- Warn: Project is vulnerable to: GHSA-hqhp-5p83-hx96
- Warn: Project is vulnerable to: GHSA-3949-f494-cm99
- Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp
- Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6
- Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg
- Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p
- Warn: Project is vulnerable to: GHSA-4rq4-32rv-6wp6
- Warn: Project is vulnerable to: GHSA-64g7-mvw6-v9qj
- Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc
- Warn: Project is vulnerable to: GHSA-jgrx-mgxx-jf9v
- Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3
- Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v
- Warn: Project is vulnerable to: GHSA-38fc-wpqx-33j7
- Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7
- Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q
Score
3.7
/10
Last Scanned on 2024-12-23
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