{"name":"base64","version":"2.0.3","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"],"maintainers":[{"name":"Peteris Krumins","email":"peteris.krumins@gmail.com","web":"http://www.catonmat.net","twitter":"pkrumins"}],"licenses":[{"type":"MIT"}],"repositories":[{"type":"git","url":"http://github.com/pkrumins/node-base64.git"}],"directories":{"tests":"tests"},"engines":{"node":">=0.3.0"},"scripts":{"install":"node-waf configure build"},"_id":"base64@2.0.3","_nodeSupported":false,"_npmVersion":"0.2.5-1","_nodeVersion":"v0.2.4","dist":{"tarball":"http://registry-npm.ywwl.com/base64/download/base64-2.0.3.tgz","bin":{"0.4-sunos-5.11":{"shasum":"60d285fb2fe8a051b4f32eb3acac2c29a3f861af","tarball":"http://registry.npmjs.org/base64/-/base64-2.0.3-0.4-sunos-5.11.tgz"}},"shasum":"8569aae254f87ab46838495312e11901a5a3da2b","integrity":"sha512-98E9bmIBw0GWSrU2ev4aFSfB6ajh45n/Q9isffJVXLCP1Prkwr0lgY2HFTm0BN9HFnrmVmnowYdwkIq8UYrSdw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCjERu8pdv+hgBKEhSNLcLpVZgjAFq2Vt6a2RKsrCQUHQIhAKp+8Za6j01jiVhyxCTmDRrTZPbKGfH/pfKxEX2QO1cV"}],"size":124280,"noattachment":false,"key":"/base64/-/base64-2.0.3.tgz"},"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":1300477479610,"_cnpm_publish_time":1300477479610,"dist-tags":{"latest":"2.1.0"}}