Ein Blog

15 Recent Node.js Features that Replace Popular npm Packages.

Bei den base64-Beispielen fehlen noch die neuen Funktionen für Hex und Base64:

const a = Uint8Array.fromBase64("...");
console.log(a.toBase64();

const b = Uint8Array.fromHex("...");
console.log(b.toHex());

Kann auch url-safe base64 und das Handling von falschem Padding und Whitespace ist auch konfigurierbar.