{"name":"b64-lite","amdName":"b64Lite","version":"1.3.0","description":"isomorphic base64 library in 152 bytes","main":"node/b64-lite.js","module":"node/b64-lite.mjs","browser":{"./node/b64-lite.js":"./dist/b64-lite.main.js","./node/b64-lite.mjs":"./dist/b64-lite.mjs"},"scripts":{"pretest":"npm run build","test":"npm run test:node && npm run test:browser && npm run test:rn","test:node":"node test/node.js","test:browser":"karma start karma.conf.js --single-run","test:rn":"node test/react-native-sim.js","build":"microbundle --entry browser.js --output dist && microbundle --entry node.js --output node --compress false && npm run build:react-native && cp b64-lite.main.js dist/","build:react-native":"cp react-native.js dist/ && cp b64-lite.ios.js dist/ && cp b64-lite.android.js dist/","release":"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":["b64","isomorphic","small","atob","btoa"],"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"},"dependencies":{"base-64":"^0.1.0"},"gitHead":"0290f903c2f71bd32d9728063c8b4791fef01676","_id":"b64-lite@1.3.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"kevlened","email":"boyettel@gmail.com"},"dist":{"integrity":"sha512-8oDS5mc1Od9aWWVziUFqbnic3W5HvrhNpHKDVNNp5y3X95CPFv7UKDd/t3I+aKIWkV2oVBisOY/TLP4oc7wRbw==","shasum":"3819e35f6ff84c0f471466559e586ff62c77eed6","tarball":"http://registry-npm.ywwl.com/b64-lite/download/b64-lite-1.3.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBWFckpAjxP9P62Hrmv9Z16vwTGzSsX2KlnQYJhMbxNBAiBy5TCt4fWte1ScO7UNyASpO/xUXEZ0D7Dkn34Jc7u9ZA=="}],"size":3145,"noattachment":false,"key":"/b64-lite/-/b64-lite-1.3.0.tgz"},"maintainers":[{"name":"kevlened","email":"boyettel@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/b64-lite-1.3.0.tgz_1517379780363_0.6153371108230203"},"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":1517379780808,"_cnpm_publish_time":1517379780808,"dist-tags":{"latest":"1.4.0"}}