arraybuffer-base64url
v1.0.1
Published
Convert base64url to ArrayBuffer and vice versa
Downloads
4
Readme
arraybuffer-base64url
Convert base64url
to ArrayBuffer
and vice versa.
Useful for working with Web Push API, WebAuthn, etc.
Compatible with Browser, Node, Deno and serverless environments.
import { base64url_to_buffer } from 'arraybuffer-base64url';
const buffer = base64url_to_buffer(string);
import { buffer_to_base64url } from 'arraybuffer-base64url';
const string = buffer_to_base64url(buffer);