
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
universal-base64url
Advanced tools
Small universal
base64url
functions for node.js and browsers.
This is a small wrapper around universal-base64
to support URL-safe base64 in node.js and browsers.
npm install universal-base64url --save
import { decode, encode } from "universal-base64url";
encode("test"); //=> "dGVzdA"
decode("dGVzdA"); //=> "test"
This module uses TypeScript and contains type definitions on NPM.
As of October 2018, https://github.com/brianloveswords/base64url exists but is using the node.js Buffer
API, instead of falling back on atob
/btoa
in browsers. It also has some issues with TypeScript definitions (includes node.js types in browser) and old browser compatibility. This libraries API is smaller and simpler by avoiding these issues.
Apache 2.0
FAQs
Small universal base64url functions for node.js and browsers
We found that universal-base64url 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
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.