{"name":"btoa","homepage":"https://github.com/coolaj86/node-browser-compat","description":"btoa for Node.JS (it's a one-liner)","repository":{"type":"git","url":"git://github.com/coolaj86/node-browser-compat.git"},"keywords":["btoa","browser"],"author":{"name":"AJ ONeal","email":"coolaj86@gmail.com","url":"http://coolaj86.info"},"engines":{"node":">= 0.4.0"},"dependencies":{},"main":"index","version":"1.0.0","_npmJsonOpts":{"file":"/Users/coolaj86/.npm/btoa/1.0.0/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"btoa@1.0.0","devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.22","_nodeVersion":"v0.4.8","_defaultsLoaded":true,"dist":{"shasum":"554b62c2c2d837f71b9959f1b42a37fec8d02fcb","tarball":"http://registry-npm.ywwl.com/btoa/download/btoa-1.0.0.tgz","integrity":"sha512-SazUabsvsC0RBh3w3cvF3o7eJJ19VguKkD7+fUyN95jgIiAe9ypD2NpZWt5D5ybcm+f2t8DLLsRuIh5Vo7C6zg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDR+g+t/W3JMYkVV34Aavp6R+6wNpJsAXtRGxx4CMOezwIhAKhAZzSCSqS8XILDuw3CB+0q8uHpnaOmIXG/2SZ+qLS1"}],"size":688,"noattachment":false,"key":"/btoa/-/btoa-1.0.0.tgz"},"scripts":{},"maintainers":[{"name":"coolaj86","email":"coolaj86@gmail.com"}],"directories":{},"readme":"btoa\n===\n\n| [atob](https://git.coolaj86.com/coolaj86/atob.js)\n| **btoa**\n| [unibabel.js](https://git.coolaj86.com/coolaj86/unibabel.js)\n| Sponsored by [ppl](https://ppl.family)\n\nA port of the browser's `btoa` function.\n\nUses `Buffer` to emulate the exact functionality of the browser's btoa\n(except that it supports some unicode that the browser may not).\n\nIt turns <strong>b</strong>inary data __to__ base64-encoded <strong>a</strong>scii.\n\n```js\n(function () {\n  \"use strict\";\n\n  var btoa = require('btoa');\n  var bin = \"Hello, 世界\";\n  var b64 = btoa(bin);\n\n  console.log(b64); // \"SGVsbG8sIBZM\"\n}());\n```\n\n**Note**: Unicode may or may not be handled incorrectly.\nThis module is intended to provide exact compatibility with the browser.\n\nCopyright and License\n===\n\nCode copyright 2012-2018 AJ ONeal\n\nDual-licensed MIT and Apache-2.0\n\nDocs copyright 2012-2018 AJ ONeal\n\nDocs released under [Creative Commons](https://git.coolaj86.com/coolaj86/btoa.js/blob/master/LICENSE.DOCS).\n","publish_time":1315601546042,"_cnpm_publish_time":1315601546042,"dist-tags":{"latest":"1.2.1"}}