{"_id":"b64-lite","_rev":"4581194","name":"b64-lite","description":"isomorphic base64 library in 152 bytes","dist-tags":{"latest":"1.4.0"},"maintainers":[{"name":"kevlened","email":"boyettel@gmail.com"}],"time":{"modified":"2026-04-10T16:01:20.000Z","created":"2017-12-11T03:09:53.074Z","1.4.0":"2019-09-17T16:40:35.616Z","1.3.1":"2018-02-03T19:12:25.380Z","1.3.0":"2018-01-31T06:23:00.808Z","1.2.0":"2018-01-08T02:31:07.811Z","1.1.1":"2018-01-07T09:28:58.932Z","1.1.0":"2018-01-07T05:30:43.619Z","1.0.1":"2018-01-06T01:12:32.840Z","1.0.0":"2018-01-06T00:59:57.230Z","0.0.1":"2017-12-11T03:09:53.074Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/kevlened/b64-lite.git"},"versions":{"1.4.0":{"name":"b64-lite","amdName":"b64Lite","version":"1.4.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"},"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":"^3.4.0","jasmine-core":"^3.4.0","karma":"^4.3.0","karma-chrome-launcher":"^3.1.0","karma-jasmine":"^2.0.1","karma-webpack":"^4.0.2","microbundle":"^0.11.0","webpack":"^4.40.2"},"dependencies":{"base-64":"^0.1.0"},"gitHead":"4beb17e9422c5490525c2f6a87d8202ba68f7576","_id":"b64-lite@1.4.0","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"shasum":"e62442de11f1f21c60e38b74f111ac0242283d3d","size":4608,"noattachment":false,"key":"/b64-lite/-/b64-lite-1.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/b64-lite/download/b64-lite-1.4.0.tgz"},"maintainers":[{"name":"kevlened","email":"boyettel@gmail.com"}],"_npmUser":{"name":"kevlened","email":"boyettel@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/b64-lite_1.4.0_1568738435492_0.3933823493830788"},"_hasShrinkwrap":false,"publish_time":1568738435616,"_cnpm_publish_time":1568738435616,"_cnpmcore_publish_time":"2021-12-16T12:13:58.505Z"},"1.3.1":{"name":"b64-lite","amdName":"b64Lite","version":"1.3.1","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":"4589e2f1c62cdb6882ff9cea1f1b9e89d026ca44","_id":"b64-lite@1.3.1","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"kevlened","email":"boyettel@gmail.com"},"dist":{"shasum":"708430847ceb458148c4461ae633d6e15f53b360","size":3198,"noattachment":false,"key":"/b64-lite/-/b64-lite-1.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/b64-lite/download/b64-lite-1.3.1.tgz"},"maintainers":[{"name":"kevlened","email":"boyettel@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/b64-lite-1.3.1.tgz_1517685145279_0.14537675585597754"},"directories":{},"publish_time":1517685145380,"_hasShrinkwrap":false,"_cnpm_publish_time":1517685145380,"_cnpmcore_publish_time":"2021-12-16T12:13:58.740Z"},"1.3.0":{"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":{"shasum":"3819e35f6ff84c0f471466559e586ff62c77eed6","size":3145,"noattachment":false,"key":"/b64-lite/-/b64-lite-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/b64-lite/download/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":{},"publish_time":1517379780808,"_hasShrinkwrap":false,"_cnpm_publish_time":1517379780808,"_cnpmcore_publish_time":"2021-12-16T12:13:58.946Z"},"1.2.0":{"name":"b64-lite","amdName":"b64Lite","version":"1.2.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.js","./node/b64-lite.mjs":"./dist/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 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"},"gitHead":"222feac207e56c119a5be9d0749f1c6fb33ecb4e","_id":"b64-lite@1.2.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"kevlened","email":"boyettel@gmail.com"},"dist":{"shasum":"a8420d177e5bee7b09b743d4f18e20e89878b3d0","size":2850,"noattachment":false,"key":"/b64-lite/-/b64-lite-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/b64-lite/download/b64-lite-1.2.0.tgz"},"maintainers":[{"name":"kevlened","email":"boyettel@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/b64-lite-1.2.0.tgz_1515378667750_0.6608883093576878"},"directories":{},"publish_time":1515378667811,"_hasShrinkwrap":false,"_cnpm_publish_time":1515378667811,"_cnpmcore_publish_time":"2021-12-16T12:13:59.177Z"},"1.1.1":{"name":"b64-lite","amdName":"b64Lite","version":"1.1.1","description":"isomorphic base64 library in 181 bytes","main":"node/b64-lite.js","module":"node/b64-lite.mjs","browser":{"./node/b64-lite.js":"./dist/b64-lite.js","./node/b64-lite.mjs":"./dist/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":"1ad870c368869d4ba0913eeb410b026d4fa1227a","_id":"b64-lite@1.1.1","_npmVersion":"5.6.0","_nodeVersion":"8.9.3","_npmUser":{"name":"kevlened","email":"boyettel@gmail.com"},"dist":{"shasum":"32b6e048f3e5fa31e4fee505427db9bc8a047864","size":2951,"noattachment":false,"key":"/b64-lite/-/b64-lite-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/b64-lite/download/b64-lite-1.1.1.tgz"},"maintainers":[{"name":"kevlened","email":"boyettel@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/b64-lite-1.1.1.tgz_1515317338851_0.6758918489795178"},"directories":{},"publish_time":1515317338932,"_hasShrinkwrap":false,"_cnpm_publish_time":1515317338932,"_cnpmcore_publish_time":"2021-12-16T12:13:59.456Z"},"1.1.0":{"name":"b64-lite","amdName":"b64Lite","version":"1.1.0","description":"isomorphic base64 library in 183 bytes","main":"node/b64-lite.js","module":"node/b64-lite.mjs","browser":{"./node/b64-lite.js":"./dist/b64-lite.js","./node/b64-lite.mjs":"./dist/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":"71048f32b8cf099af4bbeed9466ef692bff2b2bf","_id":"b64-lite@1.1.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.3","_npmUser":{"name":"kevlened","email":"boyettel@gmail.com"},"dist":{"shasum":"73353b473ef687ecfeb7b0d806cc12c3e474e5b1","size":2947,"noattachment":false,"key":"/b64-lite/-/b64-lite-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/b64-lite/download/b64-lite-1.1.0.tgz"},"maintainers":[{"name":"kevlened","email":"boyettel@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/b64-lite-1.1.0.tgz_1515303043554_0.8707570447586477"},"directories":{},"publish_time":1515303043619,"_hasShrinkwrap":false,"_cnpm_publish_time":1515303043619,"_cnpmcore_publish_time":"2021-12-16T12:13:59.674Z"},"1.0.1":{"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":{"shasum":"38c5d303498f35fd5ba09158240996e3860c14a2","size":3006,"noattachment":false,"key":"/b64-lite/-/b64-lite-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/b64-lite/download/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":{},"publish_time":1515201152840,"_hasShrinkwrap":false,"_cnpm_publish_time":1515201152840,"_cnpmcore_publish_time":"2021-12-16T12:14:00.003Z"},"1.0.0":{"name":"b64-lite","amdName":"b64","version":"1.0.0","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":"d13f9aa13019c17babb94867d739d3b4a8bc5644","_id":"b64-lite@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.3","_npmUser":{"name":"kevlened","email":"boyettel@gmail.com"},"dist":{"shasum":"580704b5313716c121fa0abedc45dcfaf2eaccea","size":2921,"noattachment":false,"key":"/b64-lite/-/b64-lite-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/b64-lite/download/b64-lite-1.0.0.tgz"},"maintainers":[{"name":"kevlened","email":"boyettel@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/b64-lite-1.0.0.tgz_1515200397098_0.26419811486266553"},"directories":{},"publish_time":1515200397230,"_hasShrinkwrap":false,"_cnpm_publish_time":1515200397230,"_cnpmcore_publish_time":"2021-12-16T12:14:00.357Z"},"0.0.1":{"name":"b64-lite","version":"0.0.1","description":"Bare minimum isomorphic base64 library","main":"cjs/node.js","browser":"cjs/browser.js","module":"mjs/browser.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":"BABEL_ENV=node babel mjs --out-dir cjs --extensions .mjs","prepublish":"npm run build"},"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":{"babel-cli":"^6.26.0","babel-preset-env":"^1.6.1","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","webpack":"^3.10.0"},"gitHead":"7ed68bdd803705239d48b294ef63fded0597d0df","_id":"b64-lite@0.0.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.3","_npmUser":{"name":"kevlened","email":"boyettel@gmail.com"},"dist":{"shasum":"e93bde2449b1d5974ff3be073a1f086802e4c295","size":2980,"noattachment":false,"key":"/b64-lite/-/b64-lite-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/b64-lite/download/b64-lite-0.0.1.tgz"},"maintainers":[{"name":"kevlened","email":"boyettel@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/b64-lite-0.0.1.tgz_1512961792955_0.1522610925603658"},"directories":{},"publish_time":1512961793074,"_hasShrinkwrap":false,"_cnpm_publish_time":1512961793074,"_cnpmcore_publish_time":"2021-12-16T12:14:00.568Z"}},"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","_attachments":{},"homepage":"https://github.com/kevlened/b64-lite#readme","bugs":{"url":"https://github.com/kevlened/b64-lite/issues"},"license":"MIT"}