{"name":"encoding","version":"0.1.5","description":"Convert encodings, uses iconv by default and fallbacks to iconv-lite if needed","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":"*"},"devDependencies":{"nodeunit":"*"},"_id":"encoding@0.1.5","dist":{"shasum":"3900ac48e4eb6b2885efe050fe74883287b7f33e","tarball":"http://registry-npm.ywwl.com/encoding/download/encoding-0.1.5.tgz","integrity":"sha512-zOHkgDbrmPgJbNilpwlh21dy+5qQs+qMp21KAJgnqD4yngHbvPQ9RTecdZH3v+OV3fR4bcofhEyMEf/+hxa5WQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQyW3vXWeyvzDrKIkSQB/o7pDjGKjUau1Nbwp+UbC7GAIhALK4d0fKhzitIZFx9t+Uzvpfg731ujJFm4gS6BP74Wd7"}],"size":2157,"noattachment":false,"key":"/encoding/-/encoding-0.1.5.tgz"},"_npmVersion":"1.1.61","_npmUser":{"name":"andris","email":"andris@node.ee"},"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":1352280278001,"_cnpm_publish_time":1352280278001,"dist-tags":{"latest":"0.1.14"}}