{"_id":"@digitalmaas/uuid-base62","_rev":"3-8db988a6ea58255adedc48fceb0476a3","name":"@digitalmaas/uuid-base62","dist-tags":{"latest":"2.0.1"},"versions":{"1.0.1":{"name":"@digitalmaas/uuid-base62","version":"1.0.1","keywords":["digitalmaas","guid","uuid","uid","id","base62","short-id","identifier","url-friendly","encode","decode"],"author":{"name":"Ricardo Nolde","email":"nolde@users.noreply.github.com"},"license":"MIT","_id":"@digitalmaas/uuid-base62@1.0.1","maintainers":[{"name":"digitalmaas","email":"developers@digitalmaas.com"}],"contributors":[{"name":"Dario Marcelino","email":"dario@appscot.com"},{"name":"Ricardo Nolde","email":"nolde@users.noreply.github.com"}],"homepage":"https://github.com/digitalmaas/uuid-base62#readme","bugs":{"url":"https://github.com/digitalmaas/uuid-base62/issues"},"dist":{"shasum":"25d50169e1a7cac83afca655ff3e6dacd9a49d17","tarball":"https://registry.npmjs.org/@digitalmaas/uuid-base62/-/uuid-base62-1.0.1.tgz","fileCount":8,"integrity":"sha512-MTaTVyZ6XEET4w55bZVxZQc6nTNgUJM0XkzAGP4prquELxpXnWYTqbCXq3w7cCRG+uVrvfvJ0C3B0oeuhHIRow==","signatures":[{"sig":"MEUCIQCNAvHoLmhxVlpIcPGlA6siiaRBRw8XMa17YsfajnDPDAIgA7S+Q23PHyYe59AXqUg68/UfUIz9ZVkZt5CG4IsfGFQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9923,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfs30YCRA9TVsSAnZWagAAuTEP/AqgH4MKCgaDHwom/zXx\nAHPixOKgYeFEeyZ7fmtNgeXkPPwjoYCEbbYTPh7r+m14BL8AG6gybPNxO/lv\n/OMgeyAiXBX2YPrtd583D70OqmPUzr7/RD1h9rw94gkxpFzZYiUbPCiwfIfY\nrmt5auSW1SzgGrj3coSJeurZ59g0YhMVWlewJTGJvYV0pJEnsCg/tkIBNcDM\n2LnShLhVcYHKyrI2utJxCuPmH5jbAVKgUCeoJKfLRz3//aQs2LbJmDqEMKJC\nDe0wZylmL6ASEqMee2DT080xcsxFww3FHcntwahVqWYBSXobTNxr1MHzt8A8\nvai+kOK0oESzUL87ThY7XxIjNX4S4ZKlNWvGwgKCOclZ97PBZ5mmSXEAmTq2\nPigJt92yDb/8tE3h8nsA79ocBgHntSc+nR/Z5Ari08toABaTinIX7W99ZKWS\nGTgtVEmBBjCARF+eCUpUiwP46vXr/YP/CpczYEG5iiOdjSwc6fFtWP/RZ23h\nW46VgUiINTXTRhoRHtjq6RN5zz3L5CuZ5pA6Y22H64YOgUJIBDgGo65R0Gs4\nRi7jM60FIiu0YF38KGg8gg3bMDj3zw4HEhYY8l1n+FRY73pFvqV7VljomwsJ\n5h5CJoVLcbm8pvWIcO7GkcE/vZ/bFyiRr0GCd4gtb5vDPbJ2KuFNXwCA6+iC\n0qgY\r\n=l4KD\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","engines":{"npm":">=5","node":">=8.2.1"},"gitHead":"a4dac154a2d5765e81fc6367ceba8855c25ba31a","scripts":{"lint":"xo","test":"mocha lib/*.test.js","release":"semantic-release"},"_npmUser":{"name":"digitalmaas","email":"developers@digitalmaas.com"},"repository":{"url":"git+https://github.com/digitalmaas/uuid-base62.git","type":"git"},"_npmVersion":"6.14.8","description":"Base62 UUID encoder and decoder","directories":{},"_nodeVersion":"10.23.0","dependencies":{"base-x":"^3.0.8"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"xo":"0.34.2","husky":"4.3.0","mocha":"8.2.1","lint-staged":"10.5.1","@commitlint/cli":"11.0.0","semantic-release":"17.2.3","@semantic-release/git":"9.0.0","@semantic-release/changelog":"^5.0.1","@commitlint/config-conventional":"11.0.0"},"_npmOperationalInternal":{"tmp":"tmp/uuid-base62_1.0.1_1605598487558_0.04794242791414849","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@digitalmaas/uuid-base62","version":"2.0.0","keywords":["digitalmaas","guid","uuid","uid","id","base62","short-id","identifier","url-friendly","encode","decode"],"author":{"name":"Ricardo Nolde","email":"nolde@users.noreply.github.com"},"license":"MIT","_id":"@digitalmaas/uuid-base62@2.0.0","maintainers":[{"name":"nolde","email":"ricardo@nolde.com.br"},{"name":"digitalmaas","email":"developers@digitalmaas.com"}],"contributors":[{"name":"Dario Marcelino","email":"dario@appscot.com"},{"name":"Ricardo Nolde","email":"nolde@users.noreply.github.com"}],"homepage":"https://github.com/digitalmaas/uuid-base62#readme","bugs":{"url":"https://github.com/digitalmaas/uuid-base62/issues"},"dist":{"shasum":"1005a42cf23d28a109404a06399cf3f65b5d96b6","tarball":"https://registry.npmjs.org/@digitalmaas/uuid-base62/-/uuid-base62-2.0.0.tgz","fileCount":4,"integrity":"sha512-FUMKw5/HDpfhxz3VNuaR50mLEdsiLRMaljN4rfC0tYr+7AWAqicAQljeMx9ghF27GqaNeJhbblrG7rVI5gBVHw==","signatures":[{"sig":"MEYCIQC8Z0RPTaAtpzLVWV1n7DMWj3sOEvQSN1K0p5GhHTPCBAIhAIUDUYtYH4Mx07b8NiQRwFP3hnFuz6wbZkwIKhQ4Vcze","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6556},"main":"dist/index.cjs","type":"module","module":"dist/index.js","engines":{"npm":">=9","node":">=18"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"default":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}},"./package.json":"./package.json"},"gitHead":"7e4d4049d212eb5d0c9da35ec46d373ae41ba297","scripts":{"lint":"xo","test":"npm run test:ts && npm run test:unit","build":"npm run build:clean && npm run build:lib","prepare":"husky","release":"semantic-release","test:ts":"tsc --noEmit","build:lib":"tsup-node --dts","test:unit":"node --import tsx --test lib/index.test.ts","build:clean":"rimraf ./dist/"},"_npmUser":{"name":"digitalmaas","email":"developers@digitalmaas.com"},"repository":{"url":"git+https://github.com/digitalmaas/uuid-base62.git","type":"git"},"_npmVersion":"10.9.2","description":"Base62 UUID encoder and decoder","directories":{},"_nodeVersion":"20.18.1","dependencies":{"base-x":"^5.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"xo":"0.60.0","tsx":"4.19.2","tsup":"8.3.5","husky":"9.1.7","rimraf":"6.0.1","tiny-glob":"0.2.9","typescript":"4.9.5","@types/node":"22.10.10","lint-staged":"15.4.2","@commitlint/cli":"19.6.1","semantic-release":"23.1.1","@semantic-release/git":"10.0.1","@semantic-release/changelog":"6.0.3","@commitlint/config-conventional":"19.6.0"},"_npmOperationalInternal":{"tmp":"tmp/uuid-base62_2.0.0_1737688980547_0.8473682010810311","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"name":"@digitalmaas/uuid-base62","version":"2.0.1","description":"Base62 UUID encoder and decoder","type":"module","main":"dist/index.js","module":"dist/index.js","exports":{"./package.json":"./package.json",".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"},"default":{"types":"./dist/index.d.ts","default":"./dist/index.js"}}},"scripts":{"build":"npm run build:clean && npm run build:lib","build:clean":"rimraf ./dist/","build:lib":"tsup-node --dts","lint":"xo","prepare":"husky","release":"semantic-release","test:ts":"tsc --noEmit","test:unit":"node --import tsx --test lib/index.test.ts","test":"npm run test:ts && npm run test:unit"},"optionalDependencies":{"@rollup/rollup-linux-x64-gnu":"*"},"dependencies":{"base-x":"^5.0.0"},"devDependencies":{"@commitlint/cli":"19.6.1","@commitlint/config-conventional":"19.6.0","@semantic-release/changelog":"6.0.3","@semantic-release/git":"10.0.1","@types/node":"22.10.10","husky":"9.1.7","lint-staged":"15.4.2","rimraf":"6.0.1","semantic-release":"23.1.1","tiny-glob":"0.2.9","tsup":"8.3.5","tsx":"4.19.2","typescript":"4.9.5","xo":"0.60.0"},"keywords":["digitalmaas","guid","uuid","uid","id","base62","short-id","identifier","url-friendly","encode","decode"],"engines":{"node":">=18","npm":">=9"},"repository":{"type":"git","url":"git+https://github.com/digitalmaas/uuid-base62.git"},"bugs":{"url":"https://github.com/digitalmaas/uuid-base62/issues"},"publishConfig":{"access":"public"},"contributors":[{"name":"Dario Marcelino","email":"dario@appscot.com"},{"name":"Ricardo Nolde","email":"nolde@users.noreply.github.com"}],"author":{"name":"Ricardo Nolde","email":"nolde@users.noreply.github.com"},"homepage":"https://github.com/digitalmaas/uuid-base62#readme","license":"MIT","_id":"@digitalmaas/uuid-base62@2.0.1","gitHead":"de9a436a4aae6c22a5c59ce950e7299180bf14e8","types":"./dist/index.d.ts","_nodeVersion":"20.18.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-IXNcVbhNRrXH4eac7mbLHk2oG8xtE6htbO22TUnvTDaqttP8LRWE6gqkTIEH5Ai7eqUN9gMkHbwxpgvq47gLuA==","shasum":"7941ea62375de9b8a1a79c607b1648481dedbfe5","tarball":"https://registry.npmjs.org/@digitalmaas/uuid-base62/-/uuid-base62-2.0.1.tgz","fileCount":8,"unpackedSize":12386,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCID2BiZXo9CAVwAkOFSvAZRM3/eaiucMrTcTp/BBSxOg3AiAoyim4mM9bxJNfpj7x6tIhZmb9SXgjXAU8aDC8nXwoGw=="}]},"_npmUser":{"name":"digitalmaas","email":"developers@digitalmaas.com"},"directories":{},"maintainers":[{"name":"nolde","email":"ricardo@nolde.com.br"},{"name":"digitalmaas","email":"developers@digitalmaas.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/uuid-base62_2.0.1_1737690046236_0.7262003556296754"},"_hasShrinkwrap":false}},"time":{"created":"2020-11-17T07:34:47.523Z","modified":"2025-01-24T03:40:46.542Z","1.0.1":"2020-11-17T07:34:47.712Z","2.0.0":"2025-01-24T03:23:00.700Z","2.0.1":"2025-01-24T03:40:46.396Z"},"bugs":{"url":"https://github.com/digitalmaas/uuid-base62/issues"},"author":{"name":"Ricardo Nolde","email":"nolde@users.noreply.github.com"},"license":"MIT","homepage":"https://github.com/digitalmaas/uuid-base62#readme","keywords":["digitalmaas","guid","uuid","uid","id","base62","short-id","identifier","url-friendly","encode","decode"],"repository":{"type":"git","url":"git+https://github.com/digitalmaas/uuid-base62.git"},"description":"Base62 UUID encoder and decoder","contributors":[{"name":"Dario Marcelino","email":"dario@appscot.com"},{"name":"Ricardo Nolde","email":"nolde@users.noreply.github.com"}],"maintainers":[{"name":"nolde","email":"ricardo@nolde.com.br"},{"name":"digitalmaas","email":"developers@digitalmaas.com"}],"readme":"@digitalmaas/uuid-base62\n========================\n\n[![NPM version][version-badge]][npm-url]\n[![NPM downloads][downloads-badge]][npm-url]\n[![digitalmaas][dmaas-badge]][dmaas-url]\n[![xojs][xojs-badge]][xojs-url]\n\n> A Base62 UUID Encoder and Decoder.\n\n\nOverview\n--------\nThis library makes it easy to translate UUIDs to and from base62 format. The default behaviour also ensures the Base62 UUID will be 22 characters long.\n\n\nInstalation\n-----------\n```shell\nnpm i --save @digitalmaas/uuid-base62\n```\n\n\nUsage\n-----\n```javascript\nconst uuidBase62 = require('@digitalmaas/uuid-base62')\n\nconst b62uuid = '2qY9COoAhfMrsH7mCyh86T'\nuuidBase62.decode(b62uuid)\n// 9af099b2-6244-4fc1-b72b-1d69a24481b7\n\nuuidBase62.encode('8fc60e7c-3b3c-48e9-a6a7-a5fe4f1fbc31')\n// 2fNwVYePN8WqqDFvVf7XMN\n```\n\nThat's it. It also supports custom alphabets; e.g base64:\n```javascript\nconst base64urlsafe = uuidBase62.baseX('0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_')\nconst uuidBase62.encode('72be7291-fbf6-400f-87c4-455e23d01cd5', { base })\n// 1OLDah-_p03Uv4hlUzQ1Pl\n```\n\nFor more examples check the [tests](./index.tests.js).\n\n\nLicense\n-------\nMIT License.\n\nThis project has been forked from the original [uuid-base62][original-project], modified and published under a different name, as the original has been abandoned.\n\nFor the complete information, please refer to the [license](./LICENSE) file.\n\n\n[version-badge]: https://img.shields.io/npm/v/@digitalmaas/uuid-base62.svg?style=flat-square\n[downloads-badge]: https://img.shields.io/npm/dm/@digitalmaas/uuid-base62.svg?style=flat-square\n[xojs-badge]: https://img.shields.io/badge/code_style-xo-brightgreen.svg?style=flat-square\n[dmaas-badge]: https://img.shields.io/badge/sponsored%20by-digitalmaas-green.svg?colorB=00CD98&style=flat-square\n[npm-url]: https://www.npmjs.com/package/@digitalmaas/uuid-base62\n[dmaas-url]: https://digitalmaas.com/\n[xojs-url]: https://github.com/xojs/xo#readme\n[original-project]: https://github.com/dmarcelino/uuid-base62\n","readmeFilename":"README.md"}