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