Gathering detailed insights and metrics for iconv-jschardet
Gathering detailed insights and metrics for iconv-jschardet
Gathering detailed insights and metrics for iconv-jschardet
Gathering detailed insights and metrics for iconv-jschardet
npm install iconv-jschardet
Typescript
Module System
Node Version
NPM Version
71.9
Supply Chain
86.1
Quality
76.8
Maintenance
100
Vulnerability
98.9
License
TypeScript (74.63%)
JavaScript (25.37%)
Total Downloads
70,832
Last Day
34
Last Week
362
Last Month
1,416
Last Year
16,714
2 Stars
502 Commits
2 Watchers
1 Branches
11 Contributors
Updated on Aug 29, 2024
Minified
Minified + Gzipped
Latest Version
2.0.33
Package Id
iconv-jschardet@2.0.33
Unpacked Size
56.52 kB
Size
13.01 kB
File Count
18
NPM Version
lerna/6.6.2/node@v22.6.0+x64 (win32)
Node Version
22.6.0
Published on
Aug 29, 2024
Cumulative downloads
Total Downloads
5
Convert/auto-detection Character encodings in JavaScript ( iconv-lite, jschardet )
npm install iconv-jschardet
see fs-iconv
1import * as iconv from 'iconv-jschardet'; 2 3import iconv from 'iconv-jschardet';
1const BIG5_HEX = 'a6b8b160a5ceb0eaa672bcd0b7c7a672c5e9aaed'; 2 3// utf8 buffer 4iconv.BufferFrom(Buffer.from(BIG5_HEX, 'hex'), 'utf8') 5iconv.BufferFrom(BIG5_HEX, 'utf8', 'hex') 6 7// big5 buffer 8iconv.BufferFrom(Buffer.from(BIG5_HEX, 'hex'), 'big5') 9iconv.BufferFrom(BIG5_HEX, 'big5', 'hex')
1const BIG5_STR = "\xa6\xb8\xb1\x60\xa5\xce\xb0\xea\xa6\x72\xbc\xd0\xb7\xc7\xa6\x72\xc5\xe9\xaa\xed"; 2const BIG5_BUF = Buffer.from('a6b8b160a5ceb0eaa672bcd0b7c7a672c5e9aaed', 'hex'); 3 4const BIG5_UTF8_BUF = Buffer.from('e6 ac a1 e5 b8 b8 e7 94 a8 e5 9c 8b e5 ad 97 e6 a8 99 e6 ba 96 e5 ad 97 e9 ab 94 e8 a1 a8'.replace(/\s/g, ''), 'hex');
1// same as jschardet.detect 2iconv.detect(BIG5_STR); 3iconv.detect(BIG5_BUF); 4 5// big5 buffer 6iconv.encode(BIG5_STR, 'big5'); 7iconv.encode(BIG5_BUF, 'big5'); 8// utf8 buffer 9iconv.encode(BIG5_STR, 'utf8'); 10iconv.encode(BIG5_BUF, 'utf8'); 11 12// utf8 string 13iconv.decode(BIG5_STR); 14iconv.decode(BIG5_BUF);
1iconv.skipDecodeWarning(bool: boolean = true)
2iconv.disableCodecDataWarn(bool: boolean = true)
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
5 existing vulnerabilities detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no SAST tool detected
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
license file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-05-19
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 MoreLast Day
-38.2%
34
Compared to previous day
Last Week
-3.7%
362
Compared to previous week
Last Month
10.4%
1,416
Compared to previous month
Last Year
21.7%
16,714
Compared to previous year