{"name":"base64","version":"2.0.6","main":"base64","description":"A C++ module for node-js that does base64 encoding and decoding.","keywords":["base conversion","base64","base64 encode","base64 decode","base64_encode","base64_decode","encode","decode"],"author":{"name":"Peteris Krumins","email":"peteris.krumins@gmail.com","url":"http://www.catonmat.net"},"license":"MIT","repository":{"type":"git","url":"git://github.com/pkrumins/node-base64.git"},"directories":{"tests":"tests"},"engines":{"node":">=0.3.0"},"scripts":{"install":"node-waf configure build"},"_npmUser":{"name":"pkrumins","email":"peteris.krumins@gmail.com"},"_id":"base64@2.0.6","dependencies":{},"devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.106","_nodeVersion":"v0.4.8","_defaultsLoaded":true,"dist":{"shasum":"5f7e7a268c46f6f7afc36afd21e993f7ba8e9a00","tarball":"http://registry-npm.ywwl.com/base64/download/base64-2.0.6.tgz","integrity":"sha512-7SV1KdoKLOPLxy77nF1hipNApLaK/sPZe9nhikHl1fyB+wNjDGWb3eC/fmmUKCgcoQDkqaXw43Zybf/x+pXeIw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCkpJuo+29VV9iIEUkcTmSZXyZDmbfzzh3bRSmPqztoQgIhAJtf1X9Tj/8vBh6M22QsuP/Xkj69wI+Ya5OF2AkJC5G1"}],"size":124854,"noattachment":false,"key":"/base64/-/base64-2.0.6.tgz"},"maintainers":[{"name":"pkrumins","email":"peteris.krumins@gmail.com"}],"readme":"Update: this module may no longer be necessary as nodejs includes its own\r\nbase64 encoding/decoding functions.\r\n\r\nThis is a node.js C++ module that encodes and decodes to/from base64. Oh, and\r\ncompared to all other modules, it actually works.\r\n\r\nIt was written by Peteris Krumins (peter@catonmat.net).\r\nHis blog is at http://www.catonmat.net  --  good coders code, great reuse.\r\n\r\n------------------------------------------------------------------------------\r\n\r\nTo build the module run:\r\n\r\n    node-waf configure build\r\n\r\nThis will produce `base64.node` binary module. To use it, make sure the\r\nmodule's directory is in NODE_PATH.\r\n\r\nThe module exports two functions `encode` and `decode`.\r\n\r\nencode\r\n------\r\n\r\nEncodes a buffer to base64, returns encoded ascii string. Unlike all other\r\nbase64, it actually works well with binary data. If you're wondering why it\r\ntakes a buffer as argument, it's because there is no way to pass binary\r\nstrings to C++ code in a sane way.\r\n\r\nHere is a basic example:\r\n\r\n    var sys = require('sys');\r\n    var base64_encode = require('base64').encode;\r\n    var Buffer = require('buffer').Buffer;\r\n    \r\n    var buf = new Buffer('hello world');\r\n\r\n    sys.print(base64_encode(buf));\r\n\r\n    /* Output: aGVsbG8gd29ybGQ= */\r\n\r\n\r\ndecode\r\n------\r\n\r\nDecodes a buffer containing base64 string, or just a base64 string to original\r\ndata.\r\n\r\n    var sys = require('sys');\r\n    var base64_decode = require('base64').decode;\r\n\r\n    sys.print(base64_decode('aGVsbG8gd29ybGQ='));\r\n\r\n    /* Output: hello world */\r\n\r\n\r\n------------------------------------------------------------------------------\r\n\r\n\r\nSGF2ZSBmdW4hCg==\r\n\r\n\r\nSincerely,\r\nPeteris Krumins\r\nhttp://www.catonmat.net\r\n\r\n","publish_time":1328132867168,"_cnpm_publish_time":1328132867168,"dist-tags":{"latest":"2.1.0"}}