actual-urlsafe-base64
v1.0.0
Published
Actual node implementation of urlsafe base 64.
Downloads
3
Readme
Actual URL-Safe Base64
Designed for usability. No padding.
Alphabets as described in RFC 4648.
API
const Base64 = require('actual-urlsafe-base64');
Base64.encode(input: String | input: Buffer): String
Base64.decode(input: String): String
Why?
All packages I found on npm encode into url-safe base64 using Buffer.toString and then replacing +/ with -_. That's ugly.