Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/endofunctor/src/components/encode/b64toUrl.mjs>default

🌐 Vixeny: At the forefront of modern web development, Vixeny stands as a runtime-independent, efficiency-driven library dedicated to upholding the principles of functional purity. It's crafted to empower developers with a robust foundation for creating scalable, maintainable, and high-performance web applications.
Latest
variable default
import { default } from "https://deno.land/x/endofunctor@v0.1.30/src/components/encode/b64toUrl.mjs";

Selects and returns a function to convert Base64 strings to Base64Url strings based on the runtime environment.

The function checks the runtime (Bun, Deno, or Node) and returns the respective conversion function. If the runtime is not Bun or Deno, it defaults to Node.

Examples

const base64ToBase64Url = unwrapBase64ToBase64UrlFunction(); const myBase64UrlString = base64ToBase64Url(myBase64String);

type

() => unknown