{"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.1","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","microtime":"0.2.0"},"license":"MIT","engines":{"node":"*"},"_npmUser":{"name":"lautis","email":"lautis@gmail.com"},"_id":"wtf8@0.1.1","dependencies":{},"_engineSupported":true,"_npmVersion":"1.0.106","_nodeVersion":"v0.6.10","_defaultsLoaded":true,"dist":{"shasum":"ee712a516f3f0e2bd834a7bef700e19aa79df147","tarball":"http://registry-npm.ywwl.com/wtf8/download/wtf8-0.1.1.tgz","integrity":"sha512-HTfr+Pa8BkuS6XOojlB/DS4Noevt0X927F8PzKteD9RPj9D1pUyWRexG6Jqs2EE9Ba0hbl3j9mMSpeui8S5V3g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICACAgCEOlkytQ4JzSmZKtRCx5yzEa4ZhxHSEs7v3cbZAiEA9s0sQ5eQCtEQsvAWIkvIrjHmfgPDwm4z38E0qQjCLik="}],"size":10240,"noattachment":false,"key":"/wtf8/-/wtf8-0.1.1.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":1329428740968,"_cnpm_publish_time":1329428740968,"dist-tags":{"latest":"0.2.0"}}