Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
A uuid is a unique identifier typically expressed as something like: 88982e7e-c87c-4758-abf2-6a36a8c3e0e0
that's too many characters!
We could instead express the same amount of data in a url-friendly way such as: iJgufsh8R1ir8mo2qMPg4A
If we want to generate a url-safe, base64 encoded id:
import b64id from 'b64id';
const id = b64id.generateId();
console.log(id); //something like: xrps2KrvTBuim1y6h-KoiA
To convert a standard uuid to url-safe, base64 format:
const id = b64id.uuidToB64('c6ba6cd8-aaef-4c1b-a29b-5cba87e2a888');
console.log(id); //something like: xrps2KrvTBuim1y6h-KoiA
To convert a url-safe, base64 id back to standard uuid format:
const id = b64id.b64ToUuid('xrps2KrvTBuim1y6h-KoiA');
console.log(id); //something like: c6ba6cd8-aaef-4c1b-a29b-5cba87e2a888
FAQs
url-safe 128-bit UUID strings expressed in base-64 encoding
The npm package b64id receives a total of 308 weekly downloads. As such, b64id popularity was classified as not popular.
We found that b64id demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.