iconv-lite
Advanced tools
Comparing version 0.4.2 to 0.4.3
# 0.4.3 / 2014-06-14 | ||
* added encodings UTF-16BE and UTF-16 with BOM | ||
# 0.4.2 / 2014-06-12 | ||
@@ -3,0 +7,0 @@ |
@@ -6,2 +6,3 @@ | ||
require("./internal"), | ||
require("./utf16"), | ||
require("./sbcs-codec"), | ||
@@ -8,0 +9,0 @@ require("./sbcs-data"), |
// Export Node.js internal encodings. | ||
var utf16lebom = new Buffer([0xFF, 0xFE]); | ||
module.exports = { | ||
@@ -9,4 +11,4 @@ // Encodings | ||
unicode11utf8: { type: "_internal", enc: "utf8" }, | ||
ucs2: { type: "_internal", enc: "ucs2" }, | ||
utf16le:{ type: "_internal", enc: "ucs2" }, | ||
ucs2: { type: "_internal", enc: "ucs2", bom: utf16lebom }, | ||
utf16le:{ type: "_internal", enc: "ucs2", bom: utf16lebom }, | ||
binary: { type: "_internal", enc: "binary" }, | ||
@@ -26,2 +28,3 @@ base64: { type: "_internal", enc: "base64" }, | ||
enc: options.enc, | ||
bom: options.bom, | ||
}; | ||
@@ -28,0 +31,0 @@ }, |
{ | ||
"name": "iconv-lite", | ||
"description": "Convert character encodings in pure javascript.", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ |
@@ -93,3 +93,4 @@ ## Pure JS character encoding conversion | ||
* All node.js native encodings: utf8, ucs2, ascii, binary, base64, hex. | ||
* All node.js native encodings: utf8, ucs2 / utf16, ascii, binary, base64, hex. | ||
* Additional unicode encodings: utf16, utf16-be. | ||
* All widespread singlebyte encodings: Windows 125x family, ISO-8859 family, | ||
@@ -96,0 +97,0 @@ IBM/DOS codepages, Macintosh family, KOI8 family, all others supported by iconv library. |
314289
26
3554
138