{"name":"encoding","version":"0.1.7","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":"https://github.com/andris9/encoding.git"},"author":{"name":"Andris Reinman"},"license":"MIT","dependencies":{"iconv-lite":"~0.2.11"},"devDependencies":{"nodeunit":"~0.8.1"},"_id":"encoding@0.1.7","dist":{"shasum":"25cc19b34e9225d120c2ea769f9136c91cecc908","tarball":"http://registry-npm.ywwl.com/encoding/download/encoding-0.1.7.tgz","integrity":"sha512-TiG6vj7ii7T/IcqPDdzKwbNMdvfZM4gzLvgvJuJQrRLOFnfYHzYjB2ixkjKJN6Wdoda1QGo6E06a6fbisv/wYg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCiHBDg/sqbMGGnCqYf6BCbSVgX4YiKb9c6nDAW3byzbAIhAJLcBM7rQdQoEnxjlhWDzkMsZ5u3uYIJ2Yef3d1x+ZND"}],"size":2170,"noattachment":false,"key":"/encoding/-/encoding-0.1.7.tgz"},"_from":".","_npmVersion":"1.2.18","_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":1378205122834,"_cnpm_publish_time":1378205122834,"dist-tags":{"latest":"0.1.14"}}