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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.1-0
    4,203
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.1-0
    4,203

Package Sidebar

Install

npm i safe-base64

Weekly Downloads

4,203

Version

2.0.1-0

License

MIT

Unpacked Size

8.73 kB

Total Files

14

Last publish

Collaborators

  • seangenabe