
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
@hexagon/base64-arraybuffer
Advanced tools
Encode/decode base64 or base64url data into ArrayBuffers.
This is basically github.com/niklasvh/base64-arraybuffer, but with added base64url support.
You can install the module via npm:
npm install @hexagon/base64-arraybuffer
const base64 = require('@hexagon/base64-arraybuffer');
const result = base64.encode("Hello World!");
const resultUrl = base64.encode("Hello World!", true);
www.jsdelivr.com/package/npm/@hexagon/base64-arraybuffer?path=dist
In a browser, you normally want /dist/base64-arraybuffer.umd.js which will register a global object named base64
// Global object base64 available
const result = base64.encode("Hello World!");
const resultUrl = base64.encode("Hello World!", true);
The library encodes and decodes base64/base64url to and from ArrayBuffers
encode(buffer) - Encodes ArrayBuffer into base64 string
decode(str) - Decodes base64 string to ArrayBuffer
encode(buffer, true) - Encodes ArrayBuffer into base64url string
decode(str, true) - Decodes base64url string to ArrayBuffer
You can run the test suite with:
npm test
Copyright (c) 2021 Hexagon Licensed under the MIT license.
Copyright (c) 2012 Niklas von Hertzen Licensed under the MIT license.
FAQs
Encode/decode base64 and base64url data into ArrayBuffers
We found that @hexagon/base64-arraybuffer 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
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.