{"_ethers.alias":{"base64.js":"browser-base64.js"},"author":"Richard Moore <me@ricmoo.com>","browser":{"./lib/base64":"./lib/browser-base64.js"},"dependencies":{"@ethersproject/bytes":"^5.0.9"},"description":"Base64 coder.","ethereum":"donations.ethers.eth","funding":[{"type":"individual","url":"https://gitcoin.co/grants/13/ethersjs-complete-simple-and-tiny-2"},{"type":"individual","url":"https://www.buymeacoffee.com/ricmoo"}],"gitHead":"e0ccafb140ad8a10353a49909b8d425ba71b87de","keywords":["Ethereum","ethers"],"license":"MIT","main":"./lib/index.js","module":"./lib.esm/index.js","name":"@ethersproject/base64","publishConfig":{"access":"public"},"repository":{"directory":"packages/base64","type":"git","url":"git://github.com/ethers-io/ethers.js.git"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"sideEffects":false,"tarballHash":"0x039db312367a40c2989d402945358f18670ee5e0f491a933a7db166e182c806d","types":"./lib/index.d.ts","version":"5.0.7","_nodeVersion":"12.20.0","_npmVersion":"ethers-dist@0.0.1","_id":"@ethersproject/base64@5.0.7","dist":{"integrity":"sha512-S5oh5DVfCo06xwJXT8fQC68mvJfgScTl2AXvbYMsHNfIBTDb084Wx4iA9MNlEReOv6HulkS+gyrUM/j3514rSw==","shasum":"d5da73699b4a33dc92bd8e5056ad1880b262057d","tarball":"http://registry-npm.ywwl.com/@ethersproject/base64/download/@ethersproject/base64-5.0.7.tgz","fileCount":28,"unpackedSize":9273,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf+OPqCRA9TVsSAnZWagAAJqQP/0f6AeNTLU7jtiqoKzqr\nGU+nnh3S5k32+UYw9O631/BLNBmBuyevTiAiXFqmX0my5l66uh23tWbGZrXR\nhEUg8w+Bc2+ciliaEw2j9T8HNH4gTOZJzqLi7moLR6yLykHjebFVGtqLfDld\nS8iL6WKIy0anqM2+mKANn6yVZlx8aLFovdSuCZN181n1oHDpeJhLRuoFuZeB\niDi2BYqNomPY4uXo7bNqeNC4SlvJ0skNzQxZSkTCJdCsko9/JxnvPXGFnE5p\n6UfaasOyeFlUC1k3sRep9y4kq00dc3i/pi6oWZ3HmGo1akfon4frY0RvEX0/\nlvueAnosEfNj4TH4vsvVtchZquCSY38P/QmKl3Wp5MTQ9yydevZx1keRU15k\nvOroYKdvOLGqYJutMvPa7Z+I5v0XjUZwfzguR48MUo/47XfbFdretmxwpZt4\nLw5V9UVFpfqPyX6mkh0tac8D3LhRsaSXUopExUKVx10mSY5SUHD2yZnJPyJf\n0JNVaZF66ov4ch5EUl5ByXYdqEvmn0x5Uwm/bAW+718bKinsf0pgHZxiTLgZ\nx0TbVR7wM71aFgXs+ATwAHZ6GcT4khyk7ZGk3CHJoEIYcAF+XjUWJoGsSomm\nIBGzdYscF5SuWdimzry6bRK+wl5iFmA19yDStxgZp4byBvmWtvjjZvt5bK5S\noq3Q\r\n=yVKL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGIEpnCJ3ihzICAYTZjzlAza/B8I74JX+vKJHh8lG0/FAiEAj4QAWqQyCl78zghbE0HRm0H6C3SpRC57/7/DupmWwFw="}],"size":3300,"noattachment":false,"key":"/@ethersproject/base64/-/@ethersproject/base64-5.0.7.tgz"},"_npmUser":{"name":"ricmoo","email":"me@ricmoo.com"},"directories":{},"maintainers":[{"name":"ricmoo","email":"me@ricmoo.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/base64_5.0.7_1610146794369_0.2462846625584838"},"_hasShrinkwrap":false,"readme":"Base64 Coder\n============\n\nfunction decode(textData: string): Uint8Array\n---------------------------------------------\n\nDecodes a base64 encoded string into the binary data.\n\n```javascript\nimport * as base64 from \"@ethersproject/base64\";\n\nlet encodedData = \"...\";\nlet data = base64.decode(encodedData);\nconsole.log(data);\n// { Uint8Array: [] }\n```\n\nfunction encode(data: Arrayish): string\n---------------------------------------\n\nDecodes a base64 encoded string into the binary data.\n\n```javascript\nimport * as base64 from \"@ethersproject/base64\";\n\nlet data = [ ];\nlet encodedData = base64.encode(data);\nconsole.log(encodedData);\n// \"...\"\n```\n\nLicense\n=======\n\nMIT License\n","publish_time":1610146794516,"_cnpm_publish_time":1610146794516,"dist-tags":{"latest":"5.8.0"}}