safe-base64
TypeScript icon, indicating that this package has built-in type declarations

2.0.1-0 • Public • Published

safe-base64

base64url - URL-safe base64 for node.js Buffer

Fork of urlsafe-base64

Usage

import { encode, decode } from "safe-base64"

encode(buffer)

Encodes a buffer to a URL-safe base64 string (RFC 4648). The padding is removed.

decode(input)

Decodes a string to a buffer.

Why

  • No out-of-scope methods
  • No confusing extra input parameters
  • Written in TypeScript

/safe-base64/

    Package Sidebar

    Install

    npm i safe-base64

    Weekly Downloads

    2,714

    Version

    2.0.1-0

    License

    MIT

    Unpacked Size

    8.73 kB

    Total Files

    14

    Last publish

    Collaborators

    • seangenabe