JSPM

  • Created
  • Published
  • Downloads 1886
  • Score
    100M100P100Q122899F
  • License MIT

base64 URL encoding for Cloudflare Workers and service workers

Package Exports

  • @cfworker/base64url
  • @cfworker/base64url/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@cfworker/base64url) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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.