{"_id":"base32-decode","_rev":"2993532","name":"base32-decode","description":"Base32 decoder with support for multiple variants.","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"linusu","email":""}],"time":{"modified":"2023-08-28T09:18:51.000Z","created":"2016-08-21T21:56:12.174Z","1.0.0":"2017-12-14T17:45:47.799Z","0.1.1":"2017-12-14T17:45:07.426Z","0.1.0":"2016-08-21T21:56:12.174Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/LinusU/base32-decode.git"},"versions":{"1.0.0":{"name":"base32-decode","version":"1.0.0","license":"MIT","repository":{"type":"git","url":"git+https://github.com/LinusU/base32-decode.git"},"scripts":{"test":"standard && node test"},"devDependencies":{"arraybuffer-equal":"^1.0.4","hex-to-array-buffer":"^0.1.0","standard":"^8.0.0-beta.5"},"keywords":["base32 decode","base32 decoder","base32","base32hex","crockford","decoder","rfc3548","rfc4648"],"gitHead":"fa61c01bc0bbd963a1abcf86cc519f09d70b09e0","description":"Base32 decoder with support for multiple variants.","bugs":{"url":"https://github.com/LinusU/base32-decode/issues"},"homepage":"https://github.com/LinusU/base32-decode#readme","_id":"base32-decode@1.0.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"linusu","email":"linus@folkdatorn.se"},"dist":{"shasum":"2a821d6a664890c872f20aa9aca95a4b4b80e2a7","size":3374,"noattachment":false,"key":"/base32-decode/-/base32-decode-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/base32-decode/download/base32-decode-1.0.0.tgz"},"maintainers":[{"name":"linusu","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/base32-decode-1.0.0.tgz_1513273546822_0.16334165050648153"},"directories":{},"publish_time":1513273547799,"_hasShrinkwrap":false,"_cnpm_publish_time":1513273547799,"_cnpmcore_publish_time":"2021-12-16T13:12:06.272Z"},"0.1.1":{"name":"base32-decode","version":"0.1.1","license":"MIT","repository":{"type":"git","url":"git+https://github.com/LinusU/base32-decode.git"},"scripts":{"test":"standard && node test"},"devDependencies":{"arraybuffer-equal":"^1.0.4","hex-to-array-buffer":"^0.1.0","standard":"^8.0.0-beta.5"},"keywords":["base32 decode","base32 decoder","base32","base32hex","crockford","decoder","rfc3548","rfc4648"],"gitHead":"ccb50089c531090e9504b2bc908383b2ceb38a1f","description":"Base32 decoder with support for multiple variants.","bugs":{"url":"https://github.com/LinusU/base32-decode/issues"},"homepage":"https://github.com/LinusU/base32-decode#readme","_id":"base32-decode@0.1.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"linusu","email":"linus@folkdatorn.se"},"dist":{"shasum":"6249a342f4b68fdfc77cca7438716e1f4c9fbeaf","size":3374,"noattachment":false,"key":"/base32-decode/-/base32-decode-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/base32-decode/download/base32-decode-0.1.1.tgz"},"maintainers":[{"name":"linusu","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/base32-decode-0.1.1.tgz_1513273506599_0.6554692049976438"},"directories":{},"publish_time":1513273507426,"_hasShrinkwrap":false,"_cnpm_publish_time":1513273507426,"_cnpmcore_publish_time":"2021-12-16T13:12:06.532Z"},"0.1.0":{"name":"base32-decode","version":"0.1.0","license":"MIT","repository":{"type":"git","url":"git+https://github.com/linusu/base32-decode.git"},"scripts":{"test":"standard && node test"},"devDependencies":{"arraybuffer-equal":"^1.0.4","hex-to-array-buffer":"^0.1.0","standard":"^8.0.0-beta.5"},"keywords":["base32 decode","base32 decoder","base32","base32hex","crockford","decoder","rfc3548","rfc4648"],"gitHead":"8ab8ccdfe8cbd0a1d8cc1bf5cae5e947048aa387","description":"Base32 decoder with support for multiple variants.","bugs":{"url":"https://github.com/linusu/base32-decode/issues"},"homepage":"https://github.com/linusu/base32-decode#readme","_id":"base32-decode@0.1.0","_shasum":"984de29c586cdfc2ae119b4a9e41f04c1d652f74","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"linusu","email":"linus@folkdatorn.se"},"dist":{"shasum":"984de29c586cdfc2ae119b4a9e41f04c1d652f74","size":3358,"noattachment":false,"key":"/base32-decode/-/base32-decode-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/base32-decode/download/base32-decode-0.1.0.tgz"},"maintainers":[{"name":"linusu","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/base32-decode-0.1.0.tgz_1471816570325_0.7924389471299946"},"directories":{},"publish_time":1471816572174,"_hasShrinkwrap":false,"_cnpm_publish_time":1471816572174,"_cnpmcore_publish_time":"2021-12-16T13:12:06.814Z"}},"readme":"# Base32 Decode\n\nBase32 decoder with support for multiple variants.\n\n## Installation\n\n```sh\nnpm install --save base32-decode\n```\n\n## Usage\n\n```js\nconst base32Decode = require('base32-decode')\n\nconsole.log(base32Decode('EHJQ6X0', 'Crockford'))\n//=> ArrayBuffer { 4 }\n\nconsole.log(base32Decode('ORSXG5A=', 'RFC4648'))\n//=> ArrayBuffer { 4 }\n\nconsole.log(base32Decode('EHIN6T0=', 'RFC4648-HEX'))\n//=> ArrayBuffer { 4 }\n```\n\n## API\n\n### base32Decode(input, variant)\n\n- `input` &lt;String&gt;\n- `variant` &lt;String&gt;\n- Return: &lt;ArrayBuffer&gt; The decoded raw data\n\nDecode the data in `input`. `variant` should be one of the supported variants\nlisted below.\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-encode](https://github.com/LinusU/base32-encode) - Base32 encoder\n","_attachments":{},"homepage":"https://github.com/LinusU/base32-decode#readme","bugs":{"url":"https://github.com/LinusU/base32-decode/issues"},"license":"MIT"}