{"_id":"base-x-ts","_rev":"4-4198f6ddc92e123efc55b1decb0718b3","name":"base-x-ts","dist-tags":{"latest":"5.0.4"},"versions":{"5.0.1":{"name":"base-x-ts","version":"5.0.1","keywords":["base-x","base58","base62","base64","crypto","crytography","decode","decoding","encode","encoding"],"author":{"name":"Daniel Cousens"},"license":"MIT","_id":"base-x-ts@5.0.1","maintainers":[{"name":"kryptodev","email":"kryptodev7@gmail.com"}],"homepage":"https://github.com/cryptocoinjs/base-x","bugs":{"url":"https://github.com/cryptocoinjs/base-x/issues"},"dist":{"shasum":"a2e7e73b5fef313c60e4cc33b2ff8812c4be1066","tarball":"https://registry.npmjs.org/base-x-ts/-/base-x-ts-5.0.1.tgz","fileCount":6,"integrity":"sha512-88KSaSya7oea7+Qcwpu+IzvIPMYeehEE+dWZMnZ52eQ6Q7TwUER8WyRgClrRNeX6vL4ek5V71m/Ie8Ex209hYw==","signatures":[{"sig":"MEQCIA7t/StabN38t/gBoweKPmIWi1D1b1kebKrf5esfss7KAiAKBnUOYgxqFL43GV3XH43lFZ3L2BnwdD4581fEAXffIg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":14837},"main":"src/cjs/index.cjs","type":"module","types":"src/cjs/index.d.ts","module":"src/esm/index.js","exports":{".":{"types":"./src/cjs/index.d.ts","import":"./src/esm/index.js","require":"./src/cjs/index.cjs"}},"scripts":{"test":"npm run unit && npm run standard","unit":"tape test/*.js","build":"npm run clean && tsc -p ./tsconfig.json && tsc -p ./tsconfig.cjs.json; npm run standard -- --fix","clean":"rimraf src","gitdiff":"npm run build && git diff --exit-code","standard":"standard --ignore test","postbuild":"find src/cjs -type f -name \"*.js\" -exec bash -c 'mv \"$0\" \"${0%.js}.cjs\"' {} \\;","prepublish":"npm run gitdiff"},"_npmUser":{"name":"kryptodev","email":"kryptodev7@gmail.com"},"repository":{"url":"git+https://github.com/cryptocoinjs/base-x.git","type":"git"},"_npmVersion":"10.9.2","description":"Fast base encoding / decoding of any given alphabet","directories":{},"_nodeVersion":"22.13.1","_hasShrinkwrap":false,"devDependencies":{"tape":"^5.3.0","rimraf":"^3.0.2","standard":"^17.1.0","typescript":"^5.4.5","@types/node":"12.0.10"},"_npmOperationalInternal":{"tmp":"tmp/base-x-ts_5.0.1_1741227782192_0.036711395103119715","host":"s3://npm-registry-packages-npm-production"}},"5.0.2":{"name":"base-x-ts","version":"5.0.2","keywords":["base-x","base58","base62","base64","crypto","crytography","decode","decoding","encode","encoding"],"author":{"name":"Daniel Cousens"},"license":"MIT","_id":"base-x-ts@5.0.2","maintainers":[{"name":"kryptodev","email":"kryptodev7@gmail.com"}],"homepage":"https://github.com/cryptocoinjs/base-x","bugs":{"url":"https://github.com/cryptocoinjs/base-x/issues"},"dist":{"shasum":"19af5048daba800ccaa3bcf8f2b0a4f9758fa9c5","tarball":"https://registry.npmjs.org/base-x-ts/-/base-x-ts-5.0.2.tgz","fileCount":6,"integrity":"sha512-Q9AcRB84uZtBeNQJyKnOi81NWa99QcwLZMYlfXBuSsy6Nl4tsArvk5cwZGDya7JsZ0Uk1HZVyCa3hoFK6vda+Q==","signatures":[{"sig":"MEUCIBpzfs76ztuIhUGVYcTEKxmEDu9jeCSi6otPKURuvBq8AiEAnXZfUHZPL2yKbSrNxv+o6BahTPUnd58bcIbxyb4vV/g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15612},"main":"src/cjs/index.cjs","type":"module","types":"src/cjs/index.d.ts","module":"src/esm/index.js","exports":{".":{"types":"./src/cjs/index.d.ts","import":"./src/esm/index.js","require":"./src/cjs/index.cjs"}},"scripts":{"test":"npm run unit && npm run standard","unit":"tape test/*.js","build":"npm run clean && tsc -p ./tsconfig.json && tsc -p ./tsconfig.cjs.json; npm run standard -- --fix","clean":"rimraf src","gitdiff":"npm run build && git diff --exit-code","standard":"standard --ignore test","postbuild":"find src/cjs -type f -name \"*.js\" -exec bash -c 'mv \"$0\" \"${0%.js}.cjs\"' {} \\;","prepublish":"npm run gitdiff"},"_npmUser":{"name":"kryptodev","email":"kryptodev7@gmail.com"},"repository":{"url":"git+https://github.com/cryptocoinjs/base-x.git","type":"git"},"_npmVersion":"10.9.2","description":"Fast base encoding / decoding of any given alphabet","directories":{},"_nodeVersion":"22.13.1","_hasShrinkwrap":false,"devDependencies":{"tape":"^5.3.0","rimraf":"^3.0.2","standard":"^17.1.0","typescript":"^5.4.5","@types/node":"12.0.10"},"_npmOperationalInternal":{"tmp":"tmp/base-x-ts_5.0.2_1742700816111_0.09621083715384615","host":"s3://npm-registry-packages-npm-production"}},"5.0.3":{"name":"base-x-ts","version":"5.0.3","keywords":["base-x","base58","base62","base64","crypto","crytography","decode","decoding","encode","encoding"],"author":{"name":"Daniel Cousens"},"license":"MIT","_id":"base-x-ts@5.0.3","maintainers":[{"name":"kryptodev","email":"kryptodev7@gmail.com"}],"homepage":"https://github.com/cryptocoinjs/base-x","bugs":{"url":"https://github.com/cryptocoinjs/base-x/issues"},"dist":{"shasum":"5f2993af613415ea14ecbbc83ed900dc0e276935","tarball":"https://registry.npmjs.org/base-x-ts/-/base-x-ts-5.0.3.tgz","fileCount":6,"integrity":"sha512-j8rU4YsUpYpacJheRfi4Ui00UpjTcezw1JlOmTnMsGj0faTrZY/Pr2KFqPlEEJOqh6lQ1gxyW5NPBhLsUNAotg==","signatures":[{"sig":"MEYCIQCkJMvbFgefG93xFjQyXvr87a8Z9FPGL2l8QmNpKljxxwIhAKLTS4DoR6QRMtlH2k/0HMAItCQKlwrkK688LXAS1Rng","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15612},"main":"src/cjs/index.cjs","type":"module","types":"src/cjs/index.d.ts","module":"src/esm/index.js","exports":{".":{"types":"./src/cjs/index.d.ts","import":"./src/esm/index.js","require":"./src/cjs/index.cjs"}},"scripts":{"test":"npm run unit && npm run standard","unit":"tape test/*.js","build":"npm run clean && tsc -p ./tsconfig.json && tsc -p ./tsconfig.cjs.json; npm run standard -- --fix","clean":"rimraf src","gitdiff":"npm run build && git diff --exit-code","standard":"standard --ignore test","postbuild":"find src/cjs -type f -name \"*.js\" -exec bash -c 'mv \"$0\" \"${0%.js}.cjs\"' {} \\;","prepublish":"npm run gitdiff"},"_npmUser":{"name":"kryptodev","email":"kryptodev7@gmail.com"},"repository":{"url":"git+https://github.com/cryptocoinjs/base-x.git","type":"git"},"_npmVersion":"10.9.3","description":"Fast base encoding / decoding of any given alphabet","directories":{},"_nodeVersion":"22.18.0","_hasShrinkwrap":false,"devDependencies":{"tape":"^5.3.0","rimraf":"^3.0.2","standard":"^17.1.0","typescript":"^5.4.5","@types/node":"12.0.10"},"_npmOperationalInternal":{"tmp":"tmp/base-x-ts_5.0.3_1755095506146_0.2579863697661795","host":"s3://npm-registry-packages-npm-production"}},"5.0.4":{"name":"base-x-ts","version":"5.0.4","description":"Fast base encoding / decoding of any given alphabet","type":"module","keywords":["base-x","base58","base62","base64","crypto","crytography","decode","decoding","encode","encoding"],"homepage":"https://github.com/cryptocoinjs/base-x","bugs":{"url":"https://github.com/cryptocoinjs/base-x/issues"},"license":"MIT","author":{"name":"Daniel Cousens"},"main":"src/cjs/index.cjs","module":"src/esm/index.js","types":"src/cjs/index.d.ts","exports":{".":{"require":"./src/cjs/index.cjs","import":"./src/esm/index.js","types":"./src/cjs/index.d.ts"}},"repository":{"type":"git","url":"git+https://github.com/cryptocoinjs/base-x.git"},"scripts":{"build":"npm run clean && tsc -p ./tsconfig.json && tsc -p ./tsconfig.cjs.json; npm run standard -- --fix","clean":"rimraf src","postbuild":"find src/cjs -type f -name \"*.js\" -exec bash -c 'mv \"$0\" \"${0%.js}.cjs\"' {} \\;","gitdiff":"npm run build && git diff --exit-code","prepublish":"npm run gitdiff","standard":"standard --ignore test","test":"npm run unit && npm run standard","unit":"tape test/*.js"},"devDependencies":{"@types/node":"12.0.10","rimraf":"^3.0.2","standard":"^17.1.0","tape":"^5.3.0","typescript":"^5.4.5"},"_id":"base-x-ts@5.0.4","_nodeVersion":"22.18.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-qDNu+5J7E/CmtwEVVYy8uM03tVVmssg6rmRXcAV8hF9Cpv0TsxviEAFFrZ4ULDVjYpMfZWZbXyW9qvGu/GzEDA==","shasum":"f6b3f40dc35f5dde4803db639d4ff98b643e6584","tarball":"https://registry.npmjs.org/base-x-ts/-/base-x-ts-5.0.4.tgz","fileCount":6,"unpackedSize":14938,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIEdeRyEmpWItF7hiQiFSwiywsy9zmndMI3AoF1cCppNdAiEA0RW0atIGTFrXBe67re5YKyQecShK82SMR80tneIH1A4="}]},"_npmUser":{"name":"kryptodev","email":"kryptodev7@gmail.com"},"directories":{},"maintainers":[{"name":"kryptodev","email":"kryptodev7@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/base-x-ts_5.0.4_1758150912508_0.4032511825059104"},"_hasShrinkwrap":false}},"time":{"created":"2025-03-06T02:23:02.191Z","modified":"2025-09-17T23:15:12.991Z","5.0.1":"2025-03-06T02:23:02.393Z","5.0.2":"2025-03-23T03:33:36.278Z","5.0.3":"2025-08-13T14:31:46.326Z","5.0.4":"2025-09-17T23:15:12.789Z"},"bugs":{"url":"https://github.com/cryptocoinjs/base-x/issues"},"author":{"name":"Daniel Cousens"},"license":"MIT","homepage":"https://github.com/cryptocoinjs/base-x","keywords":["base-x","base58","base62","base64","crypto","crytography","decode","decoding","encode","encoding"],"repository":{"type":"git","url":"git+https://github.com/cryptocoinjs/base-x.git"},"description":"Fast base encoding / decoding of any given alphabet","maintainers":[{"name":"kryptodev","email":"kryptodev7@gmail.com"}],"readme":"# base-x\n\n[![NPM Package](https://img.shields.io/npm/v/base-x.svg?style=flat-square)](https://www.npmjs.org/package/base-x)\n[![Build Status](https://img.shields.io/travis/cryptocoinjs/base-x.svg?branch=master&style=flat-square)](https://travis-ci.org/cryptocoinjs/base-x)\n\n[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)\n\nFast base encoding / decoding of any given alphabet using bitcoin style leading\nzero compression.\n\n**WARNING:** This module is **NOT RFC3548** compliant,  it cannot be used for base16 (hex), base32, or base64 encoding in a standards compliant manner. \n\n## Example\n\nBase58\n\n``` javascript\nvar BASE58 = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'\nimport basex from 'base-x'\nvar bs58 = basex(BASE58)\n\nvar decoded = bs58.decode('5Kd3NBUAdUnhyzenEwVLy9pBKxSwXvE9FMPyR4UKZvpe6E3AgLr')\n\nconsole.log(decoded)\n// => Uint8Array(33) [\n//   128, 237, 219, 220,  17, 104, 241, 218,\n//   234, 219, 211, 228,  76,  30,  63, 143,\n//    90,  40,  76,  32,  41, 247, 138, 210,\n//   106, 249, 133, 131, 164, 153, 222,  91,\n//    25\n// ]\n\nconsole.log(bs58.encode(decoded))\n// => 5Kd3NBUAdUnhyzenEwVLy9pBKxSwXvE9FMPyR4UKZvpe6E3AgLr\n```\n\n### Alphabets\n\nSee below for a list of commonly recognized alphabets, and their respective base.\n\nBase | Alphabet\n------------- | -------------\n2 | `01`\n8 | `01234567`\n11 | `0123456789a`\n16 | `0123456789abcdef`\n32 | `0123456789ABCDEFGHJKMNPQRSTVWXYZ`\n32 | `ybndrfg8ejkmcpqxot1uwisza345h769` (z-base-32)\n36 | `0123456789abcdefghijklmnopqrstuvwxyz`\n58 | `123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz`\n62 | `0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`\n64 | `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`\n67 | `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.!~`\n\n\n## How it works\n\nIt encodes octet arrays by doing long divisions on all significant digits in the\narray, creating a representation of that number in the new base. Then for every\nleading zero in the input (not significant as a number) it will encode as a\nsingle leader character. This is the first in the alphabet and will decode as 8\nbits. The other characters depend upon the base. For example, a base58 alphabet\npacks roughly 5.858 bits per character.\n\nThis means the encoded string 000f (using a base16, 0-f alphabet) will actually decode\nto 4 bytes unlike a canonical hex encoding which uniformly packs 4 bits into each\ncharacter.\n\nWhile unusual, this does mean that no padding is required and it works for bases\nlike 43. \n\n\n## LICENSE [MIT](LICENSE)\nA direct derivation of the base58 implementation from [`bitcoin/bitcoin`](https://github.com/bitcoin/bitcoin/blob/f1e2f2a85962c1664e4e55471061af0eaa798d40/src/base58.cpp),  generalized for variable length alphabets.\n","readmeFilename":"README.md"}