Actual URL-Safe Base64
Designed for usability. No padding.
Alphabets as described in RFC 4648.
API
const Base64 = ;
Base64.encodeinput: String | input: Buffer: String
Base64.decodeinput: String: String
Why?
All packages I found on npm encode into url-safe base64 using Buffer.toString and then replacing +/ with -_. That's ugly.