{"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":{"integrity":"sha512-4lS2W1dP5fj86TT2W/KnkIoMhlE0pn1pX1FvDVqVfpNH3UFcQ5sE0DYBXftrCC/hl9hiPjoJU8f215LoYZ3l7A==","shasum":"a8420d177e5bee7b09b743d4f18e20e89878b3d0","tarball":"http://registry-npm.ywwl.com/b64-lite/download/b64-lite-1.2.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCe2bN+J2izP6wCDFOXSSTVohYHLrSllJg28yFzqQ8O5gIgLcPMbLe99XSzUgmPW4GGCSsRGlGL7XbwgZMO1GPyyfI="}],"size":2850,"noattachment":false,"key":"/b64-lite/-/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":{},"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":1515378667811,"_cnpm_publish_time":1515378667811,"dist-tags":{"latest":"1.4.0"}}