1.0.3 • Published 3 years ago

urlsafe-base64-native v1.0.3

Weekly downloads
5
License
BSD-3-Clause
Repository
github
Last release
3 years ago

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.

Credits

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago