
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
isomorphic base64url library in 244 bytes
const b64u = require('b64u-lite');
b64u.toBase64Url('hi there? ä˝ ĺĄ˝');
// aGkgdGhlcmU_IOS9oOWlvQ
// add padding
b64u.toBase64Url('hi there? ä˝ ĺĄ˝', true);
// aGkgdGhlcmU_IOS9oOWlvQ==
// convert a buffer to b64u
b64u.toBase64Url(new Uint8Array([228, 189, 160, 229, 165, 189]).buffer);
// 5L2g5aW9
// convert b64u to a buffer
b64u.toBuffer('5L2g5aW9');
// new Uint8Array([228, 189, 160, 229, 165, 189]).buffer
// works with or without padding
b64u.fromBase64Url('aGkgdGhlcmU_IOS9oOWlvQ==');
b64u.fromBase64Url('aGkgdGhlcmU_IOS9oOWlvQ');
// hi there? ä˝ ĺĄ˝
// equivalent to btoa
b64u.fromBinaryString('hi there? ');
// aGkgdGhlcmU_IA
// with padding
b64u.fromBinaryString('hi there? ', true);
// aGkgdGhlcmU_IA==
// equivalent to atob
b64u.toBinaryString('aGkgdGhlcmU=');
// hi there?
If you use ES6 imports with a bundler that supports tree-shaking, yes!
import { toBase64Url } from 'b64u-lite'
MIT
FAQs
isomorphic base64url library in 358 bytes
We found that b64u-lite 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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.