{"maintainers":[{"name":"anonymous","email":"hughskennedy@gmail.com"}],"keywords":["atob","base64","isomorphic","browser","node","shared"],"dist-tags":{"latest":"2.0.0"},"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughsk.io/"},"description":"Smallest/simplest possible means of using atob with both Node and browserify","readme":"# atob-lite\n![](http://img.shields.io/badge/stability-stable-orange.svg?style=flat)\n![](http://img.shields.io/npm/v/atob-lite.svg?style=flat)\n![](http://img.shields.io/npm/dm/atob-lite.svg?style=flat)\n![](http://img.shields.io/npm/l/atob-lite.svg?style=flat)\n\nSmallest/simplest possible means of using atob with both Node and browserify.\n\nIn the browser, decoding base64 strings is done using:\n\n``` javascript\nvar decoded = atob(encoded)\n```\n\nHowever in Node, it's done like so:\n\n``` javascript\nvar decoded = new Buffer(encoded, 'base64').toString('utf8')\n```\n\nYou can easily check if `Buffer` exists and switch between the approaches\naccordingly, but using `Buffer` anywhere in your browser source will pull\nin browserify's `Buffer` shim which is pretty hefty. This package uses\nthe `main` and `browser` fields in its `package.json` to perform this\ncheck at build time and avoid pulling `Buffer` in unnecessarily.\n\n## Usage\n\n[![NPM](https://nodei.co/npm/atob-lite.png)](https://nodei.co/npm/atob-lite/)\n\n### `decoded = atob(encoded)`\n\nReturns the decoded value of a base64-encoded string.\n\n## License\n\nMIT. See [LICENSE.md](http://github.com/hughsk/atob-lite/blob/master/LICENSE.md) for details.\n","repository":{"type":"git","url":"git://github.com/hughsk/atob-lite.git"},"bugs":{"url":"https://github.com/hughsk/atob-lite/issues"},"license":"MIT","versions":{"1.0.0":{"name":"atob-lite","version":"1.0.0","description":"Smallest/simplest possible means of using atob with both Node and browserify","main":"atob-node.js","browser":"atob-browser.js","license":"MIT","scripts":{"test":"npm run test-node && npm run test-browser","test-node":"node test | tap-spec","test-browser":"browserify test | smokestack | tap-spec"},"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughsk.io/"},"dependencies":{},"devDependencies":{"browserify":"^10.2.4","smokestack":"^3.3.0","tap-closer":"^1.0.0","tap-spec":"^4.0.0","tape":"^4.0.0"},"repository":{"type":"git","url":"git://github.com/hughsk/atob-lite.git"},"keywords":["atob","base64","isomorphic","browser","node","shared"],"homepage":"https://github.com/hughsk/atob-lite","bugs":{"url":"https://github.com/hughsk/atob-lite/issues"},"gitHead":"219d83684760dede8f16d73a852a3072d934e5a7","_id":"atob-lite@1.0.0","_shasum":"b88dca6006922b962094f7556826bab31c4a296b","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.10.36","_npmUser":{"name":"anonymous","email":"hughskennedy@gmail.com"},"dist":{"shasum":"b88dca6006922b962094f7556826bab31c4a296b","tarball":"http://repository.ncinga.com/nexus/content/groups/npm-all/atob-lite/-/atob-lite-1.0.0.tgz","integrity":"sha512-ArXcmHR/vwSN37HLVap/Y5SKpz12CuEybxe1sIYl7th/S6SQPrVMNFt6rblJzCOAxn0SHbXpknUtqbAIeo3Aow==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC605tD4QyXjmc5qDOhcOkfcNdlqDR+4rBku8i5qpTMnQIgEBL2W5gDSjTKAyxePBS9LTon+xITz5er9vt+99vmGQ0="}]},"maintainers":[{"name":"anonymous","email":"hughskennedy@gmail.com"}]},"2.0.0":{"name":"atob-lite","version":"2.0.0","description":"Smallest/simplest possible means of using atob with both Node and browserify","main":"atob-node.js","browser":"atob-browser.js","license":"MIT","scripts":{"test":"npm run test-node && npm run test-browser","test-node":"node test | tap-spec","test-browser":"browserify test | smokestack | tap-spec"},"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://hughsk.io/"},"dependencies":{},"devDependencies":{"browserify":"^10.2.4","smokestack":"^3.3.0","tap-closer":"^1.0.0","tap-spec":"^4.0.0","tape":"^4.0.0"},"repository":{"type":"git","url":"git://github.com/hughsk/atob-lite.git"},"keywords":["atob","base64","isomorphic","browser","node","shared"],"homepage":"https://github.com/hughsk/atob-lite","bugs":{"url":"https://github.com/hughsk/atob-lite/issues"},"gitHead":"1e7d62d41db013d0ad03a684d3febbdc1aa42be5","_id":"atob-lite@2.0.0","_shasum":"0fef5ad46f1bd7a8502c65727f0367d5ee43d696","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"anonymous","email":"hughskennedy@gmail.com"},"dist":{"shasum":"0fef5ad46f1bd7a8502c65727f0367d5ee43d696","tarball":"http://repository.ncinga.com/nexus/content/groups/npm-all/atob-lite/-/atob-lite-2.0.0.tgz","integrity":"sha512-LEeSAWeh2Gfa2FtlQE1shxQ8zi5F9GHarrGKz08TMdODD5T4eH6BMsvtnhbWZ+XQn+Gb6om/917ucvRu7l7ukw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDGdGHYyBbffFhRn1rlHOfCEFbDc5vbAOd2Qb7wNgD9nwIgSPkjqB8a75D3epkEGA9jUw0AeLyzl7HLNaTwm3cvudM="}]},"maintainers":[{"name":"anonymous","email":"hughskennedy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/atob-lite-2.0.0.tgz_1497845857544_0.36694908840581775"}}},"name":"atob-lite","time":{"modified":"2022-06-13T03:41:15.194Z","created":"2015-06-25T16:38:12.839Z","1.0.0":"2015-06-25T16:38:12.839Z","2.0.0":"2017-06-19T04:17:37.789Z"},"readmeFilename":"README.md","homepage":"https://github.com/hughsk/atob-lite"}