{"name":"b64-lite","amdName":"b64","version":"1.0.1","description":"isomorphic base64 library in 183 bytes","main":"node/b64-lite.js","browser":"dist/b64-lite.js","module":"node/b64-lite.mjs","scripts":{"pretest":"npm run build","test":"npm run test:node && npm run test:browser","test:node":"node test/node.js","test:browser":"karma start karma.conf.js --single-run","build":"microbundle --entry browser.js --output dist && microbundle --entry node.js --output node --compress false","release":"npm run build && npm test && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"},"files":["dist","node"],"repository":{"type":"git","url":"git+https://github.com/kevlened/b64-lite.git"},"keywords":[],"license":"MIT","bugs":{"url":"https://github.com/kevlened/b64-lite/issues"},"homepage":"https://github.com/kevlened/b64-lite#readme","devDependencies":{"jasmine":"^2.8.0","jasmine-core":"^2.8.0","karma":"^1.7.1","karma-chrome-launcher":"^2.2.0","karma-jasmine":"^1.1.1","karma-webpack":"^2.0.6","microbundle":"^0.2.4","webpack":"^3.10.0"},"gitHead":"df531c41654cd2b1f95aafcfcdecee4ccdeae607","_id":"b64-lite@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.9.3","_npmUser":{"name":"kevlened","email":"boyettel@gmail.com"},"dist":{"integrity":"sha512-S12C2eVn4U6YIxgJd1n3v/rzGpPHn9niat6PZzXNIMGfydOdYjVRCaJp8wjxaw0ZbqGDSHTpZWEcK0LBCbXFGg==","shasum":"38c5d303498f35fd5ba09158240996e3860c14a2","tarball":"http://registry-npm.ywwl.com/b64-lite/download/b64-lite-1.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCZMNPEWjMWUuHQbF9LDp4qFX36Y0299GgP3Vr9mGhB9AIgcCPMpC64CiNObB/tVDFIuRJ53kRcIkcMXJsdrxA1KhQ="}],"size":3006,"noattachment":false,"key":"/b64-lite/-/b64-lite-1.0.1.tgz"},"maintainers":[{"name":"kevlened","email":"boyettel@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/b64-lite-1.0.1.tgz_1515201152727_0.7799992735963315"},"directories":{},"readme":"# b64-lite [![NPM](https://img.shields.io/npm/v/b64-lite.svg)](https://npmjs.com/package/b64-lite) [![Build](https://travis-ci.org/kevlened/b64-lite.svg?branch=master)](https://travis-ci.org/kevlened/b64-lite) [![bundlephobia](https://img.shields.io/bundlephobia/minzip/b64-lite.svg)](https://bundlephobia.com/result?p=b64-lite)\n\nNode, browser, and React Native base64 library\n\n## Usage\n\n```javascript\nconst b64 = require('b64-lite');\n\n// Base64 in ASCII to byte string\nb64.atob('aGkgdGhlcmU=');\n// hi there\n\n// byte string to Base64 in ASCII\nb64.btoa('hi there');\n// aGkgdGhlcmU=\n\n// convert unicode to b64\nb64.toBase64('hello 你好');\n// aGVsbG8g5L2g5aW9\n\n// convert a buffer to b64\nb64.toBase64(new Uint8Array([228, 189, 160, 229, 165, 189]).buffer);\n// 5L2g5aW9\n\n// decode b64 to unicode\nb64.fromBase64('aGVsbG8g5L2g5aW9');\n// hello 你好\n\n// convert b64 to a buffer\nb64.toBuffer('5L2g5aW9');\n// new Uint8Array([228, 189, 160, 229, 165, 189]).buffer\n```\n\n## Can it be smaller?\n\nIf you use ES6 imports with a bundler that supports tree-shaking, yes!\n\n```javascript\nimport { toBase64 } from 'b64-lite'\n```\n\n## License\n\nMIT\n","publish_time":1515201152840,"_cnpm_publish_time":1515201152840,"dist-tags":{"latest":"1.4.0"}}