encoding
Advanced tools
Comparing version 0.1.4 to 0.1.5
{ | ||
"name": "encoding", | ||
"version": "0.1.4", | ||
"description": "Remove accents from international characters", | ||
"version": "0.1.5", | ||
"description": "Convert encodings, uses iconv by default and fallbacks to iconv-lite if needed", | ||
"main": "index.js", | ||
@@ -15,5 +15,2 @@ "scripts": { | ||
}, | ||
"optionalDependencies":{ | ||
"iconv": "*" | ||
}, | ||
"devDependencies":{ | ||
@@ -20,0 +17,0 @@ "nodeunit": "*" |
@@ -34,5 +34,17 @@ # Encoding | ||
console.log(result); //<Buffer d5 c4 d6 dc> | ||
## iconv support | ||
By default only iconv-lite is bundled. If you need node-iconv support, you need to add it | ||
as an additional dependency for your project: | ||
..., | ||
"dependencies":{ | ||
"encoding": "*", | ||
"iconv": "*" | ||
}, | ||
... | ||
## License | ||
**MIT** |
@@ -28,3 +28,9 @@ var testCase = require('nodeunit').testCase, | ||
test.done(); | ||
}, | ||
"From ISO-2022-JP to UTF-8": function(test){ | ||
var input = new Buffer("GyRCM1g5OzU7PVEwdzgmPSQ4IUYkMnFKczlwGyhC", "base64"), | ||
expected = new Buffer("5a2m5qCh5oqA6KGT5ZOh56CU5L+u5qSc6KiO5Lya5aCx5ZGK", "base64"); | ||
test.deepEqual(encoding.convert(input, "utf-8", "ISO-2022-JP"), expected); | ||
test.done(); | ||
} | ||
} |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
6081
1
128
49
0
1