{"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":{"integrity":"sha512-KjZSWjl0E0IUmN6Kt6P679Qzp7SUo26HnOsbLcX2iBT1VSCua3nMGu0F60AcHM8eWCdtMHFo2P+pz04gM5kpvQ==","shasum":"32b6e048f3e5fa31e4fee505427db9bc8a047864","tarball":"http://registry-npm.ywwl.com/b64-lite/download/b64-lite-1.1.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDOJC6gw4gyzwdxDuw3SYFTbRbSj/QI0kaZoRlFhiE2wAIhANYcijj96EDUmQhJF25RXiOaEJv2mBk0kWBufb2ksk5r"}],"size":2951,"noattachment":false,"key":"/b64-lite/-/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":{},"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":1515317338932,"_cnpm_publish_time":1515317338932,"dist-tags":{"latest":"1.4.0"}}