{"_id":"base32.js","_rev":"4577821","name":"base32.js","description":"Base 32 encodings for JavaScript","dist-tags":{"latest":"0.1.0"},"maintainers":[{"name":"mikepb","email":""}],"time":{"modified":"2026-04-10T15:49:00.000Z","created":"2015-02-15T19:40:55.928Z","0.1.0":"2015-08-31T22:44:56.909Z","0.0.1":"2015-02-15T19:40:55.928Z"},"users":{},"author":{"name":"Michael Phan-Ba","email":"michael@mikepb.com"},"repository":{"type":"git","url":"git://github.com/mikepb/base32.js.git"},"versions":{"0.1.0":{"name":"base32.js","version":"0.1.0","author":{"name":"Michael Phan-Ba","email":"michael@mikepb.com"},"description":"Base 32 encodings for JavaScript","keywords":["base32","base32hex","crockford","rfc2938","rfc4648","encoding","decoding"],"license":"MIT","main":"index.js","browser":"base32.js","engines":{"node":">=0.12.0"},"repository":{"type":"git","url":"git://github.com/mikepb/base32.js.git"},"scripts":{"test":"mocha --reporter dot","karma":"karma start --single-run","dist":"webpack base32.js dist/base32.js && webpack --optimize-minimize base32.js dist/base32.min.js","doc":"jsdoc -c jsdoc.json"},"dependencies":{},"devDependencies":{"jsdoc":"*","karma":"*","karma-chrome-launcher":"*","karma-mocha":"*","karma-webpack":"*","mocha":"*","webpack":"*"},"gitHead":"73b263cb29d79ebac2350cc39e1c6f1874c05a92","bugs":{"url":"https://github.com/mikepb/base32.js/issues"},"homepage":"https://github.com/mikepb/base32.js#readme","_id":"base32.js@0.1.0","_shasum":"b582dec693c2f11e893cf064ee6ac5b6131a2202","_from":".","_npmVersion":"2.12.1","_nodeVersion":"2.3.4","_npmUser":{"name":"mikepb","email":"michael@mikepb.com"},"maintainers":[{"name":"mikepb","email":""}],"dist":{"shasum":"b582dec693c2f11e893cf064ee6ac5b6131a2202","size":10414,"noattachment":false,"key":"/base32.js/-/base32.js-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/base32.js/download/base32.js-0.1.0.tgz"},"directories":{},"publish_time":1441061096909,"_hasShrinkwrap":false,"_cnpm_publish_time":1441061096909,"_cnpmcore_publish_time":"2021-12-16T13:21:00.269Z"},"0.0.1":{"name":"base32.js","version":"0.0.1","author":{"name":"Michael Phan-Ba","email":"michael@mikepb.com"},"description":"Base 32 encodings for JavaScript","keywords":["base32","crockford","rfc4648","encoding","decoding","crc"],"license":"MIT","main":"index.js","browser":"base32.js","repository":{"type":"git","url":"git://github.com/mikepb/base32.js.git"},"scripts":{"test":"mocha --reporter dot","karma":"karma start --single-run","dist":"webpack base32.js dist/base32.js && webpack --optimize-minimize base32.js dist/base32.min.js","doc":"jsdoc -c jsdoc.json"},"dependencies":{},"devDependencies":{"jsdoc":"*","karma":"*","karma-chrome-launcher":"*","karma-mocha":"*","karma-webpack":"*","mocha":"*","webpack":"*"},"gitHead":"ac54140633c50df34172d276a21339e873a9c9af","bugs":{"url":"https://github.com/mikepb/base32.js/issues"},"homepage":"https://github.com/mikepb/base32.js","_id":"base32.js@0.0.1","_shasum":"d045736a57b1f6c139f0c7df42518a84e91bb2ba","_from":".","_npmVersion":"2.5.1","_nodeVersion":"1.2.0","_npmUser":{"name":"mikepb","email":"michael@mikepb.com"},"maintainers":[{"name":"mikepb","email":""}],"dist":{"shasum":"d045736a57b1f6c139f0c7df42518a84e91bb2ba","size":5690,"noattachment":false,"key":"/base32.js/-/base32.js-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/base32.js/download/base32.js-0.0.1.tgz"},"directories":{},"publish_time":1424029255928,"_hasShrinkwrap":false,"_cnpm_publish_time":1424029255928,"_cnpmcore_publish_time":"2021-12-16T13:21:00.539Z"}},"readme":"# Base 32 for JavaScript [![Build Status](https://travis-ci.org/mikepb/base32.js.svg)](http://travis-ci.org/mikepb/base32.js)\n\n[Wikipedia](https://en.wikipedia.org/wiki/Base32):\n\n> Base32 is a base 32 transfer encoding using the twenty-six letters A–Z and six digits 2–7. It is primarily used to encode binary data, but is able to encode binary text like ASCII.\n>\n> Base32 has number of advantages over Base64:\n>\n> 1. The resulting character set is all one case (usually represented as uppercase), which can often be beneficial when using a case-insensitive filesystem, spoken language, or human memory.\n>\n> 2. The result can be used as file name because it can not possibly contain '/' symbol which is usually acts as path separator in Unix-based operating systems.\n>\n> 3. The alphabet was selected to avoid similar-looking pairs of different symbols, so the strings can be accurately transcribed by hand. (For example, the symbol set omits the symbols for 1, 8 and zero, since they could be confused with the letters 'I', 'B', and 'O'.)\n>\n> 4. A result without padding can be included in a URL without encoding any characters.\n>\n> However, Base32 representation takes roughly 20% more space than Base64.\n\n## Documentation\n\nFull documentation at http://mikepb.github.io/base32.js/\n\n## Installation\n\n```sh\n$ npm install base32.js\n```\n\n## Usage\n\nEncoding an array of bytes using [Crockford][crock32]:\n\n```js\nvar base32 = require(\"base32.js\");\n\nvar buf = [1, 2, 3, 4];\nvar encoder = new base32.Encoder({ type: \"crockford\", lc: true });\nvar str = encoder.write(buf).finalize();\n// str = \"04106173\"\n\nvar decoder = new base32.Decoder({ type: \"crockford\" });\nvar out = decoder.write(str).finalize();\n// out = [1, 2, 3, 4]\n```\n\nThe default Base32 variant if no `type` is provided is `\"rfc4648\"` without\npadding.\n\n## Browser support\n\nThe browser versions of the library may be found under the `dist/` directory.\nThe browser files are updated on each versioned release, but not for\ndevelopment. [Karma][karma] is used to run the [mocha][] tests in the browser.\n\n```sh\n$ npm install -g karma-cli\n$ npm run karma\n```\n\n## Related projects\n\n- [agnoster/base32-js][agnoster]\n\n## License\n\nMIT\n\n[agnoster]: https://github.com/agnoster/base32-js\n[crock32]: http://www.crockford.com/wrmg/base32.html\n[karma]: http://karma-runner.github.io\n[mocha]: http://mochajs.org\n","_attachments":{},"homepage":"https://github.com/mikepb/base32.js#readme","bugs":{"url":"https://github.com/mikepb/base32.js/issues"},"license":"MIT"}