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
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (63.66%)
Python (18.3%)
C++ (18.04%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
120 Stars
225 Commits
34 Forks
11 Watchers
2 Branches
12 Contributors
Updated on Jun 06, 2025
Latest Version
6.0.5
Package Id
utf-8-validate@6.0.5
Unpacked Size
700.69 kB
Size
230.80 kB
File Count
15
NPM Version
10.9.0
Node Version
22.10.0
Published on
Nov 01, 2024
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
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 binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
GitHub workflow tokens follow principle of least privilege
Details
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
3 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 2
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
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
Score
Last Scanned on 2025-06-30
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