{"_id":"wtf8","_rev":"119537","name":"wtf8","description":"A Node.JS UTF-8 encoder and decoder which is able to handle characters outside Basic Multilingual Plane","dist-tags":{"latest":"0.2.0"},"maintainers":[{"name":"lautis","email":"lautis@gmail.com"}],"time":{"modified":"2021-06-03T10:55:19.000Z","created":"2012-02-14T10:51:51.368Z","0.2.0":"2015-02-23T21:03:24.905Z","0.1.1":"2012-02-16T21:45:40.968Z","0.1.0":"2012-02-14T10:51:51.368Z"},"users":{},"author":{"name":"Ville Lautanala"},"repository":{"type":"git","url":"http://github.com/lautis/wtf8.git"},"versions":{"0.2.0":{"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","size":4594,"noattachment":false,"key":"/wtf8/-/wtf8-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/wtf8/download/wtf8-0.2.0.tgz"},"publish_time":1424725404905,"_cnpm_publish_time":1424725404905,"_hasShrinkwrap":false},"0.1.1":{"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","size":10240,"noattachment":false,"key":"/wtf8/-/wtf8-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/wtf8/download/wtf8-0.1.1.tgz"},"maintainers":[{"name":"lautis","email":"lautis@gmail.com"}],"publish_time":1329428740968,"_hasShrinkwrap":false,"_cnpm_publish_time":1329428740968},"0.1.0":{"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","size":10240,"noattachment":false,"key":"/wtf8/-/wtf8-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/wtf8/download/wtf8-0.1.0.tgz"},"maintainers":[{"name":"lautis","email":"lautis@gmail.com"}],"publish_time":1329216711368,"_hasShrinkwrap":false,"_cnpm_publish_time":1329216711368}},"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","_attachments":{},"homepage":"http://github.com/lautis/wtf8","bugs":{"url":"https://github.com/lautis/wtf8/issues"},"license":"MIT"}