Gathering detailed insights and metrics for utf-8-validate
Gathering detailed insights and metrics for utf-8-validate
Gathering detailed insights and metrics for utf-8-validate
Gathering detailed insights and metrics for utf-8-validate
npm install utf-8-validate
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
117 Stars
220 Commits
36 Forks
12 Watching
2 Branches
12 Contributors
Updated on 01 Nov 2024
JavaScript (63.66%)
Python (18.3%)
C++ (18.04%)
Cumulative downloads
Total Downloads
Last day
5.1%
384,678
Compared to previous day
Last week
11.7%
2,100,485
Compared to previous week
Last month
10.2%
8,168,208
Compared to previous month
Last year
19.8%
89,400,706
Compared to previous year
1
4
Check if a buffer contains valid UTF-8 encoded text.
npm install utf-8-validate --save-optional
The --save-optional
flag tells npm to save the package in your package.json
under the
optionalDependencies
key.
The module exports a single function that takes one argument. To maximize performance, the argument is not validated. It is the caller's responsibility to ensure that it is correct.
isValidUTF8(buffer)
Checks whether a buffer contains valid UTF-8.
buffer
- The buffer to check.true
if the buffer contains only correct UTF-8, else false
.
1'use strict'; 2 3const isValidUTF8 = require('utf-8-validate'); 4 5const buf = Buffer.from([0xf0, 0x90, 0x80, 0x80]); 6 7console.log(isValidUTF8(buf)); 8// => true
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
GitHub workflow tokens follow principle of least privilege
Details
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
4 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 3
Reason
Found 0/30 approved changesets -- score normalized to 0
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
Project has not signed or included provenance with any releases.
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-18
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