actual-urlsafe-base64

1.0.0 • Public • Published

Actual URL-Safe Base64

Designed for usability. No padding.

Alphabets as described in RFC 4648.

API

const Base64 = require('actual-urlsafe-base64');
Base64.encode(inputString | inputBuffer)String
Base64.decode(inputString)String

Why?

All packages I found on npm encode into url-safe base64 using Buffer.toString and then replacing +/ with -_. That's ugly.

/actual-urlsafe-base64/

    Package Sidebar

    Install

    npm i actual-urlsafe-base64

    Weekly Downloads

    1

    Version

    1.0.0

    License

    BSD-3-Clause

    Unpacked Size

    3.26 kB

    Total Files

    4

    Last publish

    Collaborators

    • princessravy