{ "name": "iconv-lite", "description": "Convert character encodings in pure javascript.", "version": "0.2.10", "license": "MIT", "keywords": [ "iconv", "convert", "charset" ], "author": { "name": "Alexander Shtuchkin", "email": "ashtuchkin@gmail.com" }, "contributors": [ { "name": "Jinwu Zhan", "url": "https://github.com/jenkinv" }, { "name": "Adamansky Anton", "url": "https://github.com/adamansky" }, { "name": "George Stagas", "url": "https://github.com/stagas" }, { "name": "Mike D Pilsbury", "url": "https://github.com/pekim" }, { "name": "Niggler", "url": "https://github.com/Niggler" }, { "name": "wychi", "url": "https://github.com/wychi" }, { "name": "David Kuo", "url": "https://github.com/david50407" }, { "name": "ChangZhuo Chen", "url": "https://github.com/czchen" }, { "name": "Lee Treveil", "url": "https://github.com/leetreveil" } ], "main": "index.js", "homepage": "https://github.com/ashtuchkin/iconv-lite", "repository": { "type": "git", "url": "git://github.com/ashtuchkin/iconv-lite.git" }, "engines": { "node": ">=0.4.0" }, "scripts": { "test": "vows --spec" }, "devDependencies": { "vows": "", "iconv": ">=1.1" }, "readme": "iconv-lite - pure javascript character encoding conversion\n======================================================================\n\n[![Build Status](https://secure.travis-ci.org/ashtuchkin/iconv-lite.png?branch=master)](http://travis-ci.org/ashtuchkin/iconv-lite)\n\n## Features\n\n* Pure javascript. Doesn't need native code compilation.\n* Easy API.\n* Works on Windows and in sandboxed environments like [Cloud9](http://c9.io).\n* Encoding is much faster than node-iconv (see below for performance comparison).\n\n## Usage\n\n var iconv = require('iconv-lite');\n \n // Convert from an encoded buffer to string.\n str = iconv.decode(buf, 'win1251');\n \n // Convert from string to an encoded buffer.\n buf = iconv.encode(\"Sample input string\", 'win1251');\n\n## Supported encodings\n\n* All node.js native encodings: 'utf8', 'ucs2', 'ascii', 'binary', 'base64'\n* All widespread single byte encodings: Windows 125x family, ISO-8859 family, \n IBM/DOS codepages, Macintosh family, KOI8 family. \n Aliases like 'latin1', 'us-ascii' also supported.\n* Multibyte encodings: 'gbk', 'gb2313', 'Big5', 'cp950'.\n\nOthers are easy to add, see the source. Please, participate.\nMost encodings are generated from node-iconv. Thank you Ben Noordhuis and iconv authors!\n\nNot supported yet: EUC family, Shift_JIS.\n\n\n## Encoding/decoding speed\n\nComparison with node-iconv module (1000x256kb, on Ubuntu 12.04, Core i5/2.5 GHz, Node v0.8.7). \nNote: your results may vary, so please always check on your hardware.\n\n operation iconv@1.2.4 iconv-lite@0.2.4 \n ----------------------------------------------------------\n encode('win1251') ~115 Mb/s ~230 Mb/s\n decode('win1251') ~95 Mb/s ~130 Mb/s\n\n\n## Notes\n\nWhen decoding, a 'binary'-encoded string can be used as a source buffer. \nUntranslatable characters are set to � or ?. No transliteration is currently supported, pull requests are welcome.\n\n## Testing\n\n git clone git@github.com:ashtuchkin/iconv-lite.git\n cd iconv-lite\n npm install\n npm test\n \n # To view performance:\n node test/performance.js\n\n## TODO\n\n* Support streaming character conversion, something like util.pipe(req, iconv.fromEncodingStream('latin1')).\n* Add more encodings.\n* Add transliteration (best fit char).\n* Add tests and correct support of variable-byte encodings (currently work is delegated to node).\n", "readmeFilename": "README.md", "bugs": { "url": "https://github.com/ashtuchkin/iconv-lite/issues" }, "_id": "iconv-lite@0.2.10", "dist": { "shasum": "5a6567bcdacf070cad3e0bd29b9a855ad030af49" }, "_from": "iconv-lite@0.2.10", "_resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.2.10.tgz" }