{"_id":"z32","_rev":"237586","name":"z32","description":"Encode & decode z-base32","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"mafintosh","email":""}],"time":{"modified":"2023-03-24T16:40:05.000Z","created":"2022-06-15T08:20:34.591Z","1.0.0":"2022-06-15T09:06:40.960Z","0.0.0":"2022-06-15T08:20:34.591Z"},"users":{},"author":{"name":"Mathias Buus","url":"@mafintosh"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/z32.git"},"versions":{"1.0.0":{"name":"z32","version":"1.0.0","description":"Encode & decode z-base32","main":"index.js","dependencies":{"b4a":"^1.5.3"},"devDependencies":{"brittle":"^2.0.0","standard":"^17.0.0"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/z32.git"},"scripts":{"test":"standard && brittle test.js"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/z32/issues"},"homepage":"https://github.com/mafintosh/z32","gitHead":"a2d071ba1bff20345b275b912d61b864532f9e5e","_id":"z32@1.0.0","_nodeVersion":"16.15.0","_npmVersion":"8.5.5","dist":{"shasum":"d87c4a8b7aaf3660ebded2ec98f076e4c8d906e9","size":2828,"noattachment":false,"key":"/z32/-/z32-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/z32/download/z32-1.0.0.tgz"},"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"directories":{},"maintainers":[{"name":"mafintosh","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/z32_1.0.0_1655284000777_0.09324844919833453"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-06-15T10:57:41.379Z","publish_time":1655284000960,"_cnpm_publish_time":1655284000960},"0.0.0":{"name":"z32","version":"0.0.0","description":"Encode & decode z-base32","main":"index.js","dependencies":{"b4a":"^1.5.3"},"repository":{"type":"git","url":"git+https://github.com/mafintosh/z32.git"},"scripts":{"test":"standard && brittle test.js"},"author":{"name":"Mathias Buus","url":"@mafintosh"},"license":"MIT","bugs":{"url":"https://github.com/mafintosh/z32/issues"},"homepage":"https://github.com/mafintosh/z32","_id":"z32@0.0.0","_nodeVersion":"16.15.0","_npmVersion":"8.5.5","dist":{"shasum":"181e309c53f4aa64145cd1097b663c59b6a4edae","size":2806,"noattachment":false,"key":"/z32/-/z32-0.0.0.tgz","tarball":"http://name.csiicloud.com:7001/z32/download/z32-0.0.0.tgz"},"_npmUser":{"name":"mafintosh","email":"mathiasbuus@gmail.com"},"directories":{},"maintainers":[{"name":"mafintosh","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/z32_0.0.0_1655281234371_0.9982572752992693"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-06-15T10:57:40.577Z","publish_time":1655281234591,"_cnpm_publish_time":1655281234591}},"readme":"# z32\n\nz-base-32 encoder & decoder\n\n```\nnpm install z32\n```\n\n## Usage\n\n``` js\nconst z32 = require('z32')\n\nconst s = z32.encode('Hello, World!')\n\nconsole.log(s) // jb1sa5dxfoofq551pt1nn\n\nconst b = z32.decode(s)\n\nconsole.log(b) // Buffer('Hello, World!')\n```\n\n## API\n\n#### `const s = z32.encode(stringOrBuffer)`\n\nEncode a string or buffer to z-base-32.\n\n#### `const buf = z32.decode(s)`\n\nReturns a decoded buffer. Throws if the string is invalid.\n\n## License\n\nMIT\n","_attachments":{},"homepage":"https://github.com/mafintosh/z32","bugs":{"url":"https://github.com/mafintosh/z32/issues"},"license":"MIT"}