{"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.1.0","homepage":"http://github.com/lautis/wtf8","author":{"name":"Ville Lautanala"},"main":"./wtf8.js","directories":{"lib":"."},"scripts":{"test":"node test/index.js","preinstall":"node-waf configure build"},"repository":{"type":"git","url":"git://github.com/lautis/wtf8.git"},"devDependencies":{"benchmark":"0.3.0","iconv":"1.1.3","microtime":"0.2.0"},"license":"MIT","engines":{"node":"*"},"_npmUser":{"name":"lautis","email":"lautis@gmail.com"},"_id":"wtf8@0.1.0","dependencies":{},"_engineSupported":true,"_npmVersion":"1.0.104","_nodeVersion":"v0.6.9","_defaultsLoaded":true,"dist":{"shasum":"3fc454e9cff9f805bab9ae3091089519a88505d5","tarball":"http://registry-npm.ywwl.com/wtf8/download/wtf8-0.1.0.tgz","integrity":"sha512-pR3rD74pAVMZ7sAf6pCEbek9Yxk4HVBd1oTPDx64VT2A++7OtR35F0HHnbhP/p1ohosRzXCpyTaWD842kyP6Gw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBh0aLRfU/s/eTICjbhqm9HNFHZsGfBZxylO3MkHTtrPAiEAmJVL8dcJg7sc+ZP3zuk0NBv8NsMYx5K0BqY5F4U9Wn8="}],"size":10240,"noattachment":false,"key":"/wtf8/-/wtf8-0.1.0.tgz"},"maintainers":[{"name":"lautis","email":"lautis@gmail.com"}],"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":1329216711368,"_cnpm_publish_time":1329216711368,"dist-tags":{"latest":"0.2.0"}}