Skip to content

Commit d46af30

Browse files
committed
Added the new encodings that can be detected to the readme and created a build script with browserify and a minify script with uglify to easily build the umd version
1 parent 4ab63fc commit d46af30

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,15 @@ $ dfeal /home/user\ name/Documents/subtitle\ file.srt
240240
## Used Encodings
241241

242242
- UTF-8
243+
- UTF-16LE
244+
- UTF-16BE
245+
- UTF-32LE
246+
- UTF-32BE
247+
- UTF-7
248+
- UTF-1
249+
- UTF-EBCDIC
250+
- SCSU
251+
- BOCU-1
243252
- CP1250
244253
- CP1251
245254
- CP1252

package.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
{
22
"name": "detect-file-encoding-and-language",
3-
"version": "2.0.1",
3+
"version": "2.0.4",
44
"description": "Charset Detector - Detect the encoding and language of any file - Use it in the browser, with Node.js, or via CLI",
55
"main": "src/index-node.js",
66
"scripts": {
77
"regextest": "node ./testing/regexTester.test.js",
88
"test": "node ./testing/language-encoding.test.js",
9-
"build": "browserify --standalone ./src/index-browser.js > ./umd/language-encoding.min.js",
9+
"build": "browserify ./src/index-browser.js --standalone languageEncoding > ./umd/language-encoding.min.js",
10+
"minify": "uglifyjs ./umd/language-encoding.min.js --compress --output ./umd/language-encoding.min.js",
1011
"prepublishOnly": "npm test"
1112
},
1213
"browser": "umd/language-encoding.min.js",
@@ -49,6 +50,15 @@
4950
"tsv",
5051
"utf8",
5152
"utf-8",
53+
"utf-16le",
54+
"utf-16be",
55+
"utf-32le",
56+
"utf-32be",
57+
"utf-7",
58+
"utf-1",
59+
"UTF-EBCDIC",
60+
"SCSU",
61+
"BOCU-1",
5262
"cp-1250",
5363
"cp-1251",
5464
"cp-1252",

0 commit comments

Comments
 (0)