{"_id":"base32-encode","_rev":"397946","name":"base32-encode","description":"Base32 encoder with support for multiple variants.","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"linusu","email":""}],"time":{"modified":"2021-08-04T04:20:43.000Z","created":"2016-08-21T19:11:18.790Z","2.0.0":"2021-07-24T08:59:35.240Z","1.2.0":"2021-03-30T06:20:20.108Z","1.1.1":"2019-02-26T09:51:50.747Z","1.1.0":"2018-06-25T20:41:54.997Z","1.0.0":"2017-12-14T17:47:23.188Z","0.1.1":"2017-12-14T17:46:45.990Z","0.1.0":"2016-08-21T19:11:18.790Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/LinusU/base32-encode.git"},"versions":{"2.0.0":{"name":"base32-encode","version":"2.0.0","license":"MIT","repository":{"type":"git","url":"git+https://github.com/LinusU/base32-encode.git"},"type":"module","exports":"./index.js","scripts":{"test":"standard && node test && ts-readme-generator --check"},"dependencies":{"to-data-view":"^2.0.0"},"devDependencies":{"hex-to-array-buffer":"^2.0.0","standard":"^16.0.3","ts-readme-generator":"^0.5.1"},"keywords":["base32 encode","base32 encoder","base32","base32hex","crockford","encoder","rfc3548","rfc4648"],"engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"gitHead":"b970e2ee5637d194a983cbb9801dbd54d2262b06","description":"Base32 encoder with support for multiple variants.","bugs":{"url":"https://github.com/LinusU/base32-encode/issues"},"homepage":"https://github.com/LinusU/base32-encode#readme","_id":"base32-encode@2.0.0","_nodeVersion":"16.5.0","_npmVersion":"7.19.1","dist":{"shasum":"f029bea7d1db2ecc95df5c1d0a6038a39354029a","size":4639,"noattachment":false,"key":"/base32-encode/-/base32-encode-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/base32-encode/download/base32-encode-2.0.0.tgz"},"_npmUser":{"name":"linusu","email":"linus@folkdatorn.se"},"directories":{},"maintainers":[{"name":"linusu","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/base32-encode_2.0.0_1627117175101_0.4952499768277743"},"_hasShrinkwrap":false,"publish_time":1627117175240,"_cnpm_publish_time":1627117175240},"1.2.0":{"name":"base32-encode","version":"1.2.0","license":"MIT","repository":{"type":"git","url":"git+https://github.com/LinusU/base32-encode.git"},"scripts":{"test":"standard && node test"},"dependencies":{"to-data-view":"^1.1.0"},"devDependencies":{"hex-to-array-buffer":"^0.1.0","standard":"^8.0.0-beta.5"},"keywords":["base32 encode","base32 encoder","base32","base32hex","crockford","encoder","rfc3548","rfc4648"],"gitHead":"10390eb96cfb0a5d9f8eeffa4903dd1d99b2a04d","description":"Base32 encoder with support for multiple variants.","bugs":{"url":"https://github.com/LinusU/base32-encode/issues"},"homepage":"https://github.com/LinusU/base32-encode#readme","_id":"base32-encode@1.2.0","_nodeVersion":"15.6.0","_npmVersion":"7.4.0","dist":{"shasum":"e150573a5e431af0a998e32bdfde7045725ca453","size":4282,"noattachment":false,"key":"/base32-encode/-/base32-encode-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/base32-encode/download/base32-encode-1.2.0.tgz"},"_npmUser":{"name":"linusu","email":"linus@folkdatorn.se"},"directories":{},"maintainers":[{"name":"linusu","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/base32-encode_1.2.0_1617085219964_0.3649016776898686"},"_hasShrinkwrap":false,"publish_time":1617085220108,"_cnpm_publish_time":1617085220108},"1.1.1":{"name":"base32-encode","version":"1.1.1","license":"MIT","repository":{"type":"git","url":"git+https://github.com/LinusU/base32-encode.git"},"scripts":{"test":"standard && node test"},"devDependencies":{"hex-to-array-buffer":"^0.1.0","standard":"^8.0.0-beta.5"},"keywords":["base32 encode","base32 encoder","base32","base32hex","crockford","encoder","rfc3548","rfc4648"],"gitHead":"b5ea23cfa72521ad8d3e651bd4d3f63b153dfdd6","description":"Base32 encoder with support for multiple variants.","bugs":{"url":"https://github.com/LinusU/base32-encode/issues"},"homepage":"https://github.com/LinusU/base32-encode#readme","_id":"base32-encode@1.1.1","_npmVersion":"6.4.1","_nodeVersion":"11.5.0","_npmUser":{"name":"linusu","email":"linus@folkdatorn.se"},"dist":{"shasum":"d022d86aca0002a751bbe1bf20eb4a9b1cef4e95","size":4187,"noattachment":false,"key":"/base32-encode/-/base32-encode-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/base32-encode/download/base32-encode-1.1.1.tgz"},"maintainers":[{"name":"linusu","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/base32-encode_1.1.1_1551174710650_0.5150164413619627"},"_hasShrinkwrap":false,"publish_time":1551174710747,"_cnpm_publish_time":1551174710747},"1.1.0":{"name":"base32-encode","version":"1.1.0","license":"MIT","repository":{"type":"git","url":"git+https://github.com/LinusU/base32-encode.git"},"scripts":{"test":"standard && node test"},"devDependencies":{"hex-to-array-buffer":"^0.1.0","standard":"^8.0.0-beta.5"},"keywords":["base32 encode","base32 encoder","base32","base32hex","crockford","encoder","rfc3548","rfc4648"],"gitHead":"a9a54a823f07a388655538534be8e2459c8b5f41","description":"Base32 encoder with support for multiple variants.","bugs":{"url":"https://github.com/LinusU/base32-encode/issues"},"homepage":"https://github.com/LinusU/base32-encode#readme","_id":"base32-encode@1.1.0","_npmVersion":"6.1.0","_nodeVersion":"10.4.1","_npmUser":{"name":"linusu","email":"linus@folkdatorn.se"},"dist":{"shasum":"e9ec64a135628d071c3c960f9a95d1aaf0ad81e9","size":4155,"noattachment":false,"key":"/base32-encode/-/base32-encode-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/base32-encode/download/base32-encode-1.1.0.tgz"},"maintainers":[{"name":"linusu","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/base32-encode_1.1.0_1529959314948_0.031508033643815825"},"_hasShrinkwrap":false,"publish_time":1529959314997,"_cnpm_publish_time":1529959314997},"1.0.0":{"name":"base32-encode","version":"1.0.0","license":"MIT","repository":{"type":"git","url":"git+https://github.com/LinusU/base32-encode.git"},"scripts":{"test":"standard && node test"},"devDependencies":{"hex-to-array-buffer":"^0.1.0","standard":"^8.0.0-beta.5"},"keywords":["base32 encode","base32 encoder","base32","base32hex","crockford","encoder","rfc3548","rfc4648"],"gitHead":"ac40e184ed6fdf8d9475353038f58d59c6b333e6","description":"Base32 encoder with support for multiple variants.","bugs":{"url":"https://github.com/LinusU/base32-encode/issues"},"homepage":"https://github.com/LinusU/base32-encode#readme","_id":"base32-encode@1.0.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"linusu","email":"linus@folkdatorn.se"},"dist":{"shasum":"8fda8e42ab5e213e8ec30e5c440a26ae0507eb03","size":3241,"noattachment":false,"key":"/base32-encode/-/base32-encode-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/base32-encode/download/base32-encode-1.0.0.tgz"},"maintainers":[{"name":"linusu","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/base32-encode-1.0.0.tgz_1513273642315_0.1862702921498567"},"directories":{},"publish_time":1513273643188,"_hasShrinkwrap":false,"_cnpm_publish_time":1513273643188},"0.1.1":{"name":"base32-encode","version":"0.1.1","license":"MIT","repository":{"type":"git","url":"git+https://github.com/LinusU/base32-encode.git"},"scripts":{"test":"standard && node test"},"devDependencies":{"hex-to-array-buffer":"^0.1.0","standard":"^8.0.0-beta.5"},"keywords":["base32 encode","base32 encoder","base32","base32hex","crockford","encoder","rfc3548","rfc4648"],"gitHead":"d62a20c991471472cd2e65c28450907f73887b2e","description":"Base32 encoder with support for multiple variants.","bugs":{"url":"https://github.com/LinusU/base32-encode/issues"},"homepage":"https://github.com/LinusU/base32-encode#readme","_id":"base32-encode@0.1.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"linusu","email":"linus@folkdatorn.se"},"dist":{"shasum":"7510f6aa44e2c695b7efcb2673a454f8f8505ea0","size":3243,"noattachment":false,"key":"/base32-encode/-/base32-encode-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/base32-encode/download/base32-encode-0.1.1.tgz"},"maintainers":[{"name":"linusu","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/base32-encode-0.1.1.tgz_1513273605106_0.8896064800210297"},"directories":{},"publish_time":1513273605990,"_hasShrinkwrap":false,"_cnpm_publish_time":1513273605990},"0.1.0":{"name":"base32-encode","version":"0.1.0","license":"MIT","repository":{"type":"git","url":"git+https://github.com/linusu/base32-encode.git"},"scripts":{"test":"standard && node test"},"devDependencies":{"hex-to-array-buffer":"^0.1.0","standard":"^8.0.0-beta.5"},"keywords":["base32 encode","base32 encoder","base32","base32hex","crockford","encoder","rfc3548","rfc4648"],"gitHead":"073c0c0fd61cdba9dde7452766ea8feabd56dacf","description":"Base32 encoder with support for multiple variants.","bugs":{"url":"https://github.com/linusu/base32-encode/issues"},"homepage":"https://github.com/linusu/base32-encode#readme","_id":"base32-encode@0.1.0","_shasum":"1ebc5c9ccfabf6c278c8639288ba4e50ee2bb1f5","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"linusu","email":"linus@folkdatorn.se"},"dist":{"shasum":"1ebc5c9ccfabf6c278c8639288ba4e50ee2bb1f5","size":3238,"noattachment":false,"key":"/base32-encode/-/base32-encode-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/base32-encode/download/base32-encode-0.1.0.tgz"},"maintainers":[{"name":"linusu","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/base32-encode-0.1.0.tgz_1471806677388_0.4311868690419942"},"directories":{},"publish_time":1471806678790,"_cnpm_publish_time":1471806678790,"_hasShrinkwrap":false}},"readme":"# Base32 Encode\n\nBase32 encoder with support for multiple variants.\n\n## Installation\n\n```sh\nnpm install --save base32-encode\n```\n\n## Usage\n\n```js\nimport base32Encode from 'base32-encode'\nconst data = new Uint8Array([0x74, 0x65, 0x73, 0x74])\n\nconsole.log(base32Encode(data, 'Crockford'))\n//=> EHJQ6X0\n\nconsole.log(base32Encode(data, 'RFC4648'))\n//=> ORSXG5A=\n\nconsole.log(base32Encode(data, 'RFC4648', { padding: false }))\n//=> ORSXG5A\n\nconsole.log(base32Encode(data, 'RFC4648-HEX'))\n//=> EHIN6T0=\n```\n\n## API\n\n### `base32Encode(data, variant[, options])`\n\n- `data` (`ArrayBuffer | Int8Array | Uint8Array | Uint8ClampedArray`, required)\n- `variant` (`'RFC3548' | 'RFC4648' | 'RFC4648-HEX' | 'Crockford'`, required)\n- `options` (`object`, optional)\n  - `padding` (`boolean`, optional) - If set, forcefully enable or disable padding. The default behavior is to follow the default of the selected variant.\n- returns `string`\n\nEncode the data in `data` into a Base32 encoded string.\n\n#### Variants\n\n- `'RFC3548'` - Alias for `'RFC4648'`\n- `'RFC4648'` - [Base32 from RFC4648](https://tools.ietf.org/html/rfc4648)\n- `'RFC4648-HEX'` - [base32hex from RFC4648](https://tools.ietf.org/html/rfc4648)\n- `'Crockford'` - [Crockford's Base32](http://www.crockford.com/wrmg/base32.html)\n\n## See also\n\n- [base32-decode](https://github.com/LinusU/base32-decode) - Base32 decoder\n","_attachments":{},"homepage":"https://github.com/LinusU/base32-encode#readme","bugs":{"url":"https://github.com/LinusU/base32-encode/issues"},"license":"MIT"}