{"name":"encoding","version":"0.1.2","description":"Remove accents from international characters","main":"index.js","scripts":{"test":"nodeunit test.js"},"repository":{"type":"git","url":"git://github.com/andris9/encoding.git"},"author":{"name":"Andris Reinman"},"license":"MIT","dependencies":{"iconv-lite":"*","iconv":"*"},"optionalDependencies":{"iconv":"*"},"devDependencies":{"nodeunit":"*"},"_id":"encoding@0.1.2","dist":{"shasum":"6827a60632997ed27001d805dcdd2b925de9a913","tarball":"http://registry-npm.ywwl.com/encoding/download/encoding-0.1.2.tgz","integrity":"sha512-0IwQRh3ur9eTp0H4EA932OO9+aqQxVHCGUcD/tD5G/sv7Z31ioc1MDFYZmjvVVlKY3OJk3D7XzLAg+sTNYMxNA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCK+31QJmrcMqedw5fMbSjq2WyZUD0yZU0OzY9tnb/eCgIhAIgZizJVYxqikfo9BcXPqdgWPSN0KBQuzQf4TfofRHb7"}],"size":1898,"noattachment":false,"key":"/encoding/-/encoding-0.1.2.tgz"},"maintainers":[{"name":"andris","email":"andris@node.ee"}],"directories":{},"readme":"# Encoding\n\n**encoding** is a simple wrapper around [iconv-lite](https://github.com/ashtuchkin/iconv-lite/) to convert strings from one encoding to another.\n\n[![Build Status](https://secure.travis-ci.org/andris9/encoding.svg)](http://travis-ci.org/andris9/Nodemailer)\n[![npm version](https://badge.fury.io/js/encoding.svg)](http://badge.fury.io/js/encoding)\n\nInitially _encoding_ was a wrapper around _node-iconv_ (main) and _iconv-lite_ (fallback) and was used as the encoding layer for Nodemailer/mailparser. Somehow it also ended up as a dependency for a bunch of other project, none of these actually using _node-iconv_. The loading mechanics caused issues for front-end projects and Nodemailer/malparser had moved on, so _node-iconv_ was removed.\n\n## Install\n\nInstall through npm\n\n    npm install encoding\n\n## Usage\n\nRequire the module\n\n    var encoding = require(\"encoding\");\n\nConvert with encoding.convert()\n\n    var resultBuffer = encoding.convert(text, toCharset, fromCharset);\n\nWhere\n\n-   **text** is either a Buffer or a String to be converted\n-   **toCharset** is the characterset to convert the string\n-   **fromCharset** (_optional_, defaults to UTF-8) is the source charset\n\nOutput of the conversion is always a Buffer object.\n\nExample\n\n    var result = encoding.convert(\"ÕÄÖÜ\", \"Latin_1\");\n    console.log(result); //<Buffer d5 c4 d6 dc>\n\n## License\n\n**MIT**\n","publish_time":1345106887540,"_cnpm_publish_time":1345106887540,"dist-tags":{"latest":"0.1.14"}}