You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

encoding

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.4 to 0.1.5

7

package.json
{
"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();
}
}
SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc