
Security News
Vite+ Joins the Push to Consolidate JavaScript Tooling
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
@digitalmaas/uuid-base62
Advanced tools
A Base62 UUID Encoder and Decoder.
This 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.
npm i --save @digitalmaas/uuid-base62
const uuidBase62 = require('@digitalmaas/uuid-base62')
const b62uuid = '2qY9COoAhfMrsH7mCyh86T'
uuidBase62.decode(b62uuid)
// 9af099b2-6244-4fc1-b72b-1d69a24481b7
uuidBase62.encode('8fc60e7c-3b3c-48e9-a6a7-a5fe4f1fbc31')
// 2fNwVYePN8WqqDFvVf7XMN
That's it. It also supports custom alphabets; e.g base64:
const base64urlsafe = uuidBase62.baseX('0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_')
const uuidBase62.encode('72be7291-fbf6-400f-87c4-455e23d01cd5', { base })
// 1OLDah-_p03Uv4hlUzQ1Pl
For more examples check the tests.
MIT License.
This project has been forked from the original uuid-base62, modified and published under a different name, as the original has been abandoned.
For the complete information, please refer to the license file.
2.0.1 (2025-01-24)
adjust issue with rollup optional dependency for build (5f31715)
fix issue with npm package creation (b3c93d0)
feat!: upgrade to TS, build to CJS and ESM, upgrade dependencies (24558a8)
FAQs
Base62 UUID encoder and decoder
We found that @digitalmaas/uuid-base62 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
Security News
Ruby Central’s incident report on the RubyGems.org access dispute sparks backlash from former maintainers and renewed debate over project governance.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.