You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: add strict input check allowing only byte arrays as inputs (#87) (#88)
BREAKING CHANGE
From this release, only instances of Array with numeric values <= 255 are accepted
as inputs. No strings or anything else except shapes like `Buffer` or `Uint8Array`.
Copy file name to clipboardExpand all lines: README.md
+11-4Lines changed: 11 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# chardet
2
2
3
-
*Chardet* is a character detection module written in pure JavaScript (TypeScript). Module uses occurrence analysis to determine the most probable encoding.
3
+
_Chardet_ is a character detection module written in pure JavaScript (TypeScript). Module uses occurrence analysis to determine the most probable encoding.
4
4
5
5
- Packed size is only **22 KB**
6
6
- Works in all environments: Node / Browser / Native
@@ -42,10 +42,17 @@ Returned value is an array of objects sorted by confidence value in descending o
In browser, you can use [Uint8Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) instead of the `Buffer`:
0 commit comments