Comparing version 1.3.0 to 1.4.0
{ | ||
"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, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
539569
45
8627
80