1.0.3 • Published 5 years ago

urlsafe-base64-native v1.0.3

Weekly downloads
5
License
BSD-3-Clause
Repository
github
Last release
5 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

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago