Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

safe-base64

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

Install

npm i safe-base64

DownloadsWeekly Downloads

3

Version

2.0.1-0

License

MIT

Unpacked Size

8.73 kB

Total Files

14

Last publish

Collaborators

  • avatar