{"_id":"b64u-lite","_rev":"4581171","name":"b64u-lite","description":"isomorphic base64url library in 358 bytes","dist-tags":{"latest":"1.1.0"},"maintainers":[{"name":"kevlened","email":"boyettel@gmail.com"}],"time":{"modified":"2026-04-10T16:01:15.000Z","created":"2018-01-07T09:31:48.189Z","1.1.0":"2019-09-17T17:15:53.953Z","1.0.1":"2018-01-08T02:36:09.189Z","1.0.0":"2018-01-08T02:22:10.506Z","0.0.2":"2018-01-07T09:31:48.189Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/kevlened/b64u-lite.git"},"versions":{"1.1.0":{"name":"b64u-lite","amdName":"b64uLite","version":"1.1.0","description":"isomorphic base64url library in 358 bytes","main":"dist/b64u-lite.js","module":"dist/b64u-lite.mjs","scripts":{"pretest":"npm run build","test":"node test.js","build":"npm run build:unbundled && npm run build:bundle","build:unbundled":"microbundle --entry index.mjs --output dist --external b64-lite --compress false","build:bundle":"microbundle --entry index.mjs --output bundle --external none --target browser","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/b64u-lite.git"},"keywords":["isomorphic","base64url","b64u","react","native"],"license":"MIT","bugs":{"url":"https://github.com/kevlened/b64u-lite/issues"},"homepage":"https://github.com/kevlened/b64u-lite#readme","dependencies":{"b64-lite":"^1.4.0"},"devDependencies":{"microbundle":"^0.11.0"},"gitHead":"b95d6899b5d833b91a51ef4b2d7e414549b8454a","_id":"b64u-lite@1.1.0","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"shasum":"a581b7df94cbd4bed7cbb19feae816654f0b1bf0","size":4326,"noattachment":false,"key":"/b64u-lite/-/b64u-lite-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/b64u-lite/download/b64u-lite-1.1.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/b64u-lite_1.1.0_1568740553862_0.5108684688292422"},"_hasShrinkwrap":false,"publish_time":1568740553953,"_cnpm_publish_time":1568740553953,"_cnpmcore_publish_time":"2021-12-16T21:16:54.689Z"},"1.0.1":{"name":"b64u-lite","amdName":"b64uLite","version":"1.0.1","description":"isomorphic base64url library in 244 bytes","main":"dist/b64u-lite.js","module":"dist/b64u-lite.mjs","files":["dist","bundle"],"scripts":{"pretest":"npm run build","test":"node test.js","build":"npm run build:unbundled && npm run build:bundle","build:unbundled":"microbundle --entry index.mjs --output dist --external all --compress false","build:bundle":"microbundle --entry index.mjs --output bundle --target browser","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/b64u-lite.git"},"keywords":["isomorphic","base64url","b64u"],"license":"MIT","bugs":{"url":"https://github.com/kevlened/b64u-lite/issues"},"homepage":"https://github.com/kevlened/b64u-lite#readme","dependencies":{"b64-lite":"^1.1.1"},"devDependencies":{"microbundle":"^0.2.4"},"gitHead":"697ce4e6d49c550590b42795bf304e5c8dd03668","_id":"b64u-lite@1.0.1","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"kevlened","email":"boyettel@gmail.com"},"dist":{"shasum":"b19e543bb8715e65cc083d42234c4fe9e4fa18bd","size":2908,"noattachment":false,"key":"/b64u-lite/-/b64u-lite-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/b64u-lite/download/b64u-lite-1.0.1.tgz"},"maintainers":[{"name":"kevlened","email":"boyettel@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/b64u-lite-1.0.1.tgz_1515378969122_0.7849477764684707"},"directories":{},"publish_time":1515378969189,"_hasShrinkwrap":false,"_cnpm_publish_time":1515378969189,"_cnpmcore_publish_time":"2021-12-16T21:16:54.889Z"},"1.0.0":{"name":"b64u-lite","amdName":"b64uLite","version":"1.0.0","description":"isomorphic base64url library in 264 bytes","main":"dist/b64u-lite.js","module":"dist/b64u-lite.mjs","files":["dist","bundle"],"scripts":{"pretest":"npm run build","test":"node test.js","build":"npm run build:unbundled && npm run build:bundle","build:unbundled":"microbundle --entry index.mjs --output dist --external all --compress false","build:bundle":"microbundle --entry index.mjs --output bundle --target browser","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/b64u-lite.git"},"keywords":["isomorphic","base64url","b64u"],"license":"MIT","bugs":{"url":"https://github.com/kevlened/b64u-lite/issues"},"homepage":"https://github.com/kevlened/b64u-lite#readme","dependencies":{"b64-lite":"^1.1.1"},"devDependencies":{"microbundle":"^0.2.4"},"gitHead":"44c86301e165e6255a01d3c80562958a54fa6f9b","_id":"b64u-lite@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"kevlened","email":"boyettel@gmail.com"},"dist":{"shasum":"d4dd565879c40e7222f97ffa607e8fa355d41b12","size":3005,"noattachment":false,"key":"/b64u-lite/-/b64u-lite-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/b64u-lite/download/b64u-lite-1.0.0.tgz"},"maintainers":[{"name":"kevlened","email":"boyettel@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/b64u-lite-1.0.0.tgz_1515378128925_0.41797061497345567"},"directories":{},"publish_time":1515378130506,"_hasShrinkwrap":false,"_cnpm_publish_time":1515378130506,"_cnpmcore_publish_time":"2021-12-16T21:16:55.099Z"},"0.0.2":{"name":"b64u-lite","amdName":"b64uLite","version":"0.0.2","description":"isomorphic base64url library in 194 bytes","main":"dist/b64u-lite.js","module":"dist/b64u-lite.mjs","files":["dist","bundle"],"scripts":{"pretest":"npm run build","test":"node test.js","build":"npm run build:unbundled && npm run build:bundle","build:unbundled":"microbundle --entry index.mjs --output dist --external all --compress false","build:bundle":"microbundle --entry index.mjs --output bundle --target browser","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/b64u-lite.git"},"keywords":["isomorphic","base64url","b64u"],"license":"MIT","bugs":{"url":"https://github.com/kevlened/b64u-lite/issues"},"homepage":"https://github.com/kevlened/b64u-lite#readme","dependencies":{"b64-lite":"^1.1.1"},"devDependencies":{"microbundle":"^0.2.4"},"gitHead":"4b746734a7956d4e8bf14bd9847000d1cb37cf7a","_id":"b64u-lite@0.0.2","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"kevlened","email":"boyettel@gmail.com"},"dist":{"shasum":"b9779056a3efc422c26ee56b46b9a83b03bbd296","size":2411,"noattachment":false,"key":"/b64u-lite/-/b64u-lite-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/b64u-lite/download/b64u-lite-0.0.2.tgz"},"maintainers":[{"name":"kevlened","email":"boyettel@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/b64u-lite-0.0.2.tgz_1515317508080_0.361791122937575"},"directories":{},"publish_time":1515317508189,"_hasShrinkwrap":false,"_cnpm_publish_time":1515317508189,"_cnpmcore_publish_time":"2021-12-16T21:16:55.315Z"}},"readme":"# b64u-lite [![NPM](https://img.shields.io/npm/v/b64u-lite.svg)](https://npmjs.com/package/b64u-lite) [![Build](https://travis-ci.org/kevlened/b64u-lite.svg?branch=master)](https://travis-ci.org/kevlened/b64u-lite) [![bundlephobia](https://img.shields.io/bundlephobia/minzip/b64u-lite.svg)](https://bundlephobia.com/result?p=b64u-lite)\n\nisomorphic base64url library in 244 bytes\n\n## Usage\n\n```javascript\nconst b64u = require('b64u-lite');\n\nb64u.toBase64Url('hi there? 你好');\n// aGkgdGhlcmU_IOS9oOWlvQ\n\n// add padding\nb64u.toBase64Url('hi there? 你好', true);\n// aGkgdGhlcmU_IOS9oOWlvQ==\n\n// convert a buffer to b64u\nb64u.toBase64Url(new Uint8Array([228, 189, 160, 229, 165, 189]).buffer);\n// 5L2g5aW9\n\n// convert b64u to a buffer\nb64u.toBuffer('5L2g5aW9');\n// new Uint8Array([228, 189, 160, 229, 165, 189]).buffer\n\n// works with or without padding\nb64u.fromBase64Url('aGkgdGhlcmU_IOS9oOWlvQ==');\nb64u.fromBase64Url('aGkgdGhlcmU_IOS9oOWlvQ');\n// hi there? 你好\n\n// equivalent to btoa\nb64u.fromBinaryString('hi there? ');\n// aGkgdGhlcmU_IA\n\n// with padding\nb64u.fromBinaryString('hi there? ', true);\n// aGkgdGhlcmU_IA==\n\n// equivalent to atob\nb64u.toBinaryString('aGkgdGhlcmU=');\n// hi there?\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 { toBase64Url } from 'b64u-lite'\n```\n\n## License\n\nMIT","_attachments":{},"homepage":"https://github.com/kevlened/b64u-lite#readme","bugs":{"url":"https://github.com/kevlened/b64u-lite/issues"},"license":"MIT"}