Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
function nkeys.encode
import { nkeys } from "https://deno.land/x/natsws@v1.29.2/src/nats-base-client.ts";
const { encode } = nkeys;

Encode binary data to a base64 string

Parameters

bytes: Uint8Array

to encode to base64

Returns

string