{"_ethers.alias":{"base64.js":"browser-base64.js"},"author":"Richard Moore <me@ricmoo.com>","browser":{"./lib/base64":"./lib/browser-base64.js"},"dependencies":{"@ethersproject/bytes":"^5.2.0"},"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":"dad3829c2e54b1c002c83ce948dc172530f6846d","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":"0x74c5fce00eedf475f74d4890e6e1a83c281898964b9055d5645d1f3074dc87bf","types":"./lib/index.d.ts","version":"5.2.0","_nodeVersion":"12.20.0","_npmVersion":"ethers-dist@0.0.1","_id":"@ethersproject/base64@5.2.0","dist":{"integrity":"sha512-D9wOvRE90QBI+yFsKMv0hnANiMzf40Xicq9JZbV9XYzh7srImmwmMcReU2wHjOs9FtEgSJo51Tt+sI1dKPYKDg==","shasum":"e01066d25e5b4e8a051545163bee5def47bd9534","tarball":"http://registry-npm.ywwl.com/@ethersproject/base64/download/@ethersproject/base64-5.2.0.tgz","fileCount":35,"unpackedSize":11238,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgptTlCRA9TVsSAnZWagAALqkP/Rr1K5A0sgkdjvQ/lSqn\n8qdouhlUq8ZdfH5/yO3SMKNxk295tmyEJnFMCv03sQqpn+O8fHRqtDQL60Nw\nTkxCYCBWmT8dSETCGcKbafSsIK5DYAi8dSl06cTtAg3UHvL8g0++pyOhM5p9\nnvWZCe3XLaZBFS85AxJEbuQIC8Mjq41Wrk9LHkp5fzAEsT9xsWh7JbmELU79\nMDUMmMWetA6vNErH8b90em3jeOmnWnof7YiNyzEUbUt6hOnP4VbZBrH+n0ee\nUefiYFjvUduNIDzCv+qF4sNtF2mcz/iSGWUGbb4i5P14fxaEojL5yt69Voxb\nUGOYJ3aQIWodSewffdY9TxUZkNs1K2QFmZF4pFfHQMf6kulUJmp4BdnhLjrC\n3Eu+/G0twlLIwWQLRsInfqarAol4cGkhu3XkmvvpRP7JSHa58nxPTlLg6s05\nbdtrC0sGBGrlneh4KoupHF+afC67cTDIQpXlG5QDjQxmZ4YcyK7Aazl3TAGs\nh4yjTKoaZFQjif5ROXXKEfQLsQAgGbZeSexotvNZ7FWmi2tffxEOcMs2d4Kd\nDi780cH/Oj2FEUvnk8zSHlpTWakwuwG3OTt3kBmbkEnTp8IvpoH8QCreWrIw\nb2hDZOvByUoTiUlvxMPHsgwIzZJfAyI1QR8o0m4q/dJTYxYmGRi/aZcGYE0q\n4Onf\r\n=3dwy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDPCWDIMeMbaj9bUMmWiEi8/IM0WRPa1yf9g3EikHkGHAIhAPXhiUcwhdRtTVBeqQAVgVwPG7Z39jAPAcQTBJag9Ef4"}],"size":3548,"noattachment":false,"key":"/@ethersproject/base64/-/@ethersproject/base64-5.2.0.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.2.0_1621546213466_0.8783255531467211"},"_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":1621546213629,"_cnpm_publish_time":1621546213629,"dist-tags":{"latest":"5.8.0"}}