Gathering detailed insights and metrics for jschardet-eastasia
Gathering detailed insights and metrics for jschardet-eastasia
Gathering detailed insights and metrics for jschardet-eastasia
Gathering detailed insights and metrics for jschardet-eastasia
Character encoding auto-detection in JavaScript (port of python's chardet)
npm install jschardet-eastasia
Typescript
Module System
Min. Node Version
Node Version
NPM Version
77.6
Supply Chain
93.7
Quality
74.8
Maintenance
100
Vulnerability
80.9
License
JavaScript (99.12%)
CSS (0.73%)
HTML (0.15%)
Total Downloads
2,352
Last Day
1
Last Week
3
Last Month
17
Last Year
160
42 Commits
1 Forks
1 Watchers
1 Branches
1 Contributors
Updated on Dec 14, 2016
Minified
Minified + Gzipped
Latest Version
1.4.1
Package Id
jschardet-eastasia@1.4.1
Size
385.67 kB
NPM Version
3.9.3
Node Version
6.2.1
Cumulative downloads
Total Downloads
Last Day
0%
1
Compared to previous day
Last Week
200%
3
Compared to previous week
Last Month
21.4%
17
Compared to previous month
Last Year
22.1%
160
Compared to previous year
2
JsChardet - Port of python's chardet.
JsChardet-EastAsia - Modified from JsChardet, just remaining east asia characters.
LGPL
npm install jschardet-eastasia
var jschardet = require("jschardet-eastasia")
// "àíàçã" in UTF-8
jschardet.detect("\xc3\xa0\xc3\xad\xc3\xa0\xc3\xa7\xc3\xa3")
// { encoding: "UTF-8", confidence: 0.9690625 }
// "次常用國字標準字體表" in Big5
jschardet.detect("\xa6\xb8\xb1\x60\xa5\xce\xb0\xea\xa6\x72\xbc\xd0\xb7\xc7\xa6\x72\xc5\xe9\xaa\xed")
// { encoding: "Big5", confidence: 0.99 }
Copy and include jschardet_eastasia.min.js in your web page.
1// See all information related to the confidence levels of each encoding. 2// This is useful to see why you're not getting the expected encoding. 3jschardet.Constants._debug = true; 4 5// Default minimum accepted confidence level is 0.20 but sometimes this is not 6// enough, specially when dealing with files mostly with numbers. 7// To change this to 0 to always get something or any other value that can 8// work for you. 9jschardet.Constants.MINIMUM_THRESHOLD = 0;
I haven't been able to create tests to correctly detect:
Use npm run dist
to update the distribution files. They're available at https://github.com/jiangzhuo/jschardet-eastasia/tree/master/dist.
Ported from python to JavaScript by António Afonso (https://github.com/aadsm/jschardet)
Transformed into an npm package by Markus Ast (https://github.com/brainafk)
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
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
no SAST tool detected
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 More