urlsafe-base64-native

1.0.3 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i urlsafe-base64-native

Weekly Downloads

0

Version

1.0.3

License

BSD-3-Clause

Unpacked Size

6.18 kB

Total Files

7

Last publish

Collaborators

  • noctember