Installations
npm install jschardet-eastasia
Developer Guide
Typescript
No
Module System
CommonJS
Min. Node Version
*
Node Version
6.2.1
NPM Version
3.9.3
Score
77.6
Supply Chain
93.7
Quality
74.8
Maintenance
100
Vulnerability
80.9
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (99.12%)
CSS (0.73%)
HTML (0.15%)
Developer
Download Statistics
Total Downloads
2,284
Last Day
1
Last Week
9
Last Month
18
Last Year
119
GitHub Statistics
42 Commits
1 Forks
1 Watching
1 Branches
1 Contributors
Bundle Size
261.29 kB
Minified
105.71 kB
Minified + Gzipped
Package Meta Information
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
Total Downloads
Cumulative downloads
Total Downloads
2,284
Last day
0%
1
Compared to previous day
Last week
350%
9
Compared to previous week
Last month
157.1%
18
Compared to previous month
Last year
-8.5%
119
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dev Dependencies
2
JsChardet-EastAsia
JsChardet - Port of python's chardet.
JsChardet-EastAsia - Modified from JsChardet, just remaining east asia characters.
License
LGPL
How To Use It
Node
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 }
Browser
Copy and include jschardet_eastasia.min.js in your web page.
Options
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;
Supported Charsets
- Big5, GB2312/GB18030, EUC-TW, HZ-GB-2312, and ISO-2022-CN (Traditional and Simplified Chinese)
- EUC-JP, SHIFT_JIS, and ISO-2022-JP (Japanese)
- EUC-KR and ISO-2022-KR (Korean)
- UTF-32 BE, LE, 3412-ordered, or 2143-ordered (with a BOM)
- UTF-16 BE or LE (with a BOM)
- UTF-8 (with or without a BOM)
- ASCII
Technical Information
I haven't been able to create tests to correctly detect:
- ISO-2022-CN
- EUC-CN
Development
Use npm run dist
to update the distribution files. They're available at https://github.com/jiangzhuo/jschardet-eastasia/tree/master/dist.
Authors
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
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
license file not detected
Details
- Warn: project does not have a license file
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
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Score
2.6
/10
Last Scanned on 2025-01-27
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