iconv-lite
Advanced tools
Comparing version 0.2.8 to 0.2.9
11
index.js
@@ -12,5 +12,13 @@ // Module exports | ||
defaultCharSingleByte: '?', | ||
encodingsLoaded: false, | ||
// Get correct codec for given encoding. | ||
getCodec: function(encoding) { | ||
if (!iconv.encodingsLoaded) { | ||
applyEncodings(require('./encodings/singlebyte')); | ||
applyEncodings(require('./encodings/gbk')); | ||
applyEncodings(require('./encodings/big5')); | ||
iconv.encodingsLoaded = true; | ||
} | ||
var enc = encoding || "utf8"; | ||
@@ -196,5 +204,2 @@ var codecOptions = undefined; | ||
applyEncodings(require('./encodings/singlebyte')); | ||
applyEncodings(require('./encodings/gbk')); | ||
applyEncodings(require('./encodings/big5')); | ||
@@ -201,0 +206,0 @@ |
{ | ||
"name": "iconv-lite", | ||
"description": "Convert character encodings in pure javascript.", | ||
"version": "0.2.8", | ||
"version": "0.2.9", | ||
"license": "MIT", | ||
@@ -16,3 +17,4 @@ "keywords": ["iconv", "convert", "charset"], | ||
"David Kuo (https://github.com/david50407)", | ||
"ChangZhuo Chen (https://github.com/czchen)" | ||
"ChangZhuo Chen (https://github.com/czchen)", | ||
"Lee Treveil (https://github.com/leetreveil)" | ||
], | ||
@@ -19,0 +21,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
633246
1168