Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jschardet

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jschardet - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

tests/index.html

2

package.json
{
"name": "jschardet",
"version": "1.3.0",
"version": "1.4.0",
"description": "Character encoding auto-detection in JavaScript (port of python's chardet)",

@@ -5,0 +5,0 @@ "main": "src/init",

@@ -29,3 +29,17 @@ JsChardet

Options
-------
```javascript
// See all information related to the confidence levels of each encoding.
// This is useful to see why you're not getting the expected encoding.
jschardet.Constants._debug = true;
// Default minimum accepted confidence level is 0.20 but sometimes this is not
// enough, specially when dealing with files mostly with numbers.
// To change this to 0 to always get something or any other value that can
// work for you.
jschardet.Constants.MINIMUM_THRESHOLD = 0;
```
Supported Charsets

@@ -32,0 +46,0 @@ ------------------

@@ -43,5 +43,6 @@ /*

MINIMUM_THRESHOLD : 0.20,
SHORTCUT_THRESHOLD : 0.95
};
}((typeof process !== 'undefined' && typeof process.title !== 'undefined') ? require('./init') : jschardet);
}((typeof process !== 'undefined' && typeof process.title !== 'undefined') ? require('./init') : jschardet);

@@ -37,3 +37,3 @@ /*

jschardet.UniversalDetector = function() {
var MINIMUM_THRESHOLD = 0.20;
var MINIMUM_THRESHOLD = jschardet.Constants.MINIMUM_THRESHOLD;
var _state = {

@@ -40,0 +40,0 @@ pureAscii : 0,

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc