{"name":"wtf8","description":"A Node.JS UTF-8 encoder and decoder which is able to handle characters outside Basic Multilingual Plane","keywords":["utf8","unicode"],"version":"0.2.0","homepage":"http://github.com/lautis/wtf8","author":{"name":"Ville Lautanala"},"main":"./wtf8.js","directories":{"lib":"."},"scripts":{"test":"node test/index.js","install":"node-gyp rebuild"},"repository":{"type":"git","url":"http://github.com/lautis/wtf8.git"},"devDependencies":{"benchmark":">= 1.0.0","microtime":"~1.2.0"},"license":"MIT","engines":{"node":">=0.8"},"dependencies":{"nan":"~1.6.2"},"gypfile":true,"gitHead":"0a69ed77e97e7dd0793e6211a71f054d541156a2","bugs":{"url":"https://github.com/lautis/wtf8/issues"},"_id":"wtf8@0.2.0","_shasum":"a97a8a07bd79bf18af270f677a1ee8aa70ac99c5","_from":".","_npmVersion":"2.5.1","_nodeVersion":"1.3.0","_npmUser":{"name":"lautis","email":"lautis@gmail.com"},"maintainers":[{"name":"lautis","email":"lautis@gmail.com"}],"dist":{"shasum":"a97a8a07bd79bf18af270f677a1ee8aa70ac99c5","tarball":"http://registry-npm.ywwl.com/wtf8/download/wtf8-0.2.0.tgz","integrity":"sha512-tbcMLE65ZpC3CG5Glknz7/xX7sKDytMFtdMrXV4oiIWX3VboLH2Y6DWT+EU/BO44sG/knl5Hh+2V3a3fyI/iKg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE7oaH6/vUWddsKcntJxkxseM+b8SY7hKqqLbvTPgp6EAiEAmqIpoVBMiSw9C4ncZtfBlVXEQagNe+QVuKQdbKbMGs0="}],"size":4594,"noattachment":false,"key":"/wtf8/-/wtf8-0.2.0.tgz"},"readme":"# WTF8 [![Build Status](https://travis-ci.org/lautis/wtf8.svg?branch=travis-ci)](https://travis-ci.org/lautis/wtf8)\n\nA UTF-8 decoder and encoder which can handle characters outside Basic Multilingual Plane for node.js. It's also reasonably fast.\n\n## Why?\n\nV8 doesn't like 4-byte UTF-8 characters. 😞\n\n## Methods\n\n### .decode(buffer)\n\nDecode buffer containing UTF-8 data to JS string.\n\n    var utf8 = require('wtf8');\n    utf8.decode(new Buffer([0x68, 0x65, 0x6c, 0x6c, 0x6f]));\n    // => 'hello'\n\n### .encode(string)\n\nEncode strings to buffer.\n\n    var utf8 = require('wtf8');\n    utf8.encode('hello');\n    // => <SlowBuffer 68 65 6c 6c 6f>\n\n## TODO\n\n* stream piping\n","publish_time":1424725404905,"_cnpm_publish_time":1424725404905,"dist-tags":{"latest":"0.2.0"}}