package.json 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. {
  2. "name": "iconv-lite",
  3. "description": "Convert character encodings in pure javascript.",
  4. "version": "0.2.7",
  5. "keywords": [
  6. "iconv",
  7. "convert",
  8. "charset"
  9. ],
  10. "author": {
  11. "name": "Alexander Shtuchkin",
  12. "email": "[email protected]"
  13. },
  14. "contributors": [
  15. {
  16. "name": "Jinwu Zhan",
  17. "url": "https://github.com/jenkinv"
  18. },
  19. {
  20. "name": "Adamansky Anton",
  21. "url": "https://github.com/adamansky"
  22. },
  23. {
  24. "name": "George Stagas",
  25. "url": "https://github.com/stagas"
  26. },
  27. {
  28. "name": "Mike D Pilsbury",
  29. "url": "https://github.com/pekim"
  30. }
  31. ],
  32. "main": "index.js",
  33. "homepage": "https://github.com/ashtuchkin/iconv-lite",
  34. "repository": {
  35. "type": "git",
  36. "url": "git://github.com/ashtuchkin/iconv-lite.git"
  37. },
  38. "engines": {
  39. "node": ">=0.4.0"
  40. },
  41. "scripts": {
  42. "test": "vows --spec"
  43. },
  44. "devDependencies": {
  45. "vows": "",
  46. "iconv": ">=1.1"
  47. },
  48. "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'.\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: Big5, 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 [email protected] [email protected] \n ----------------------------------------------------------\n encode('win1251') ~115 Mb/s ~230 Mb/s\n decode('win1251') ~95 Mb/s ~130 Mb/s\n\n\n## Notes\n\nUntranslatable characters are set to � or ?. No transliteration is currently supported, pull requests are welcome.\n\n## Testing\n\n npm install --dev iconv-lite\n vows\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",
  49. "readmeFilename": "README.md",
  50. "_id": "[email protected]",
  51. "_from": "iconv-lite@~0.2.5"
  52. }