Socket
Socket
Sign inDemoInstall

iconv-lite

Package Overview
Dependencies
0
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.4.2 to 0.4.3

encodings/utf16.js

4

Changelog.md
# 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"),

7

encodings/internal.js
// 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.

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc