@cfworker/base64url

base64 URL encoding for Cloudflare Workers and service workers

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@cfworker/base64url
490201.12.56 months ago3 years agoMinified + gzip package size for @cfworker/base64url in KB

Readme

@cfworker/base64url

base64 URL encoding for Cloudflare Workers and service workers.

usage

import { encode, decode } from '@cfworker/base64url';

const plain = 'The quick brown fox jumps over the lazy dog.';

const encoded = encode(plain); // VGhlIHF1aWNrIGJyb3duIGZveCBqdW1wcyBvdmVyIHRoZSBsYXp5IGRvZy4

const decoded = decode(encoded); // The quick brown fox jumps over the lazy dog.