Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

nkeys.encode

import { nkeys } from "https://raw.githubusercontent.com/nats-io/nats.deno/v1.28.2/nats-base-client/internal_mod.ts"; 

const { encode } = nkeys;

Encode binary data to a base64 string

function encode(bytes: Uint8Array): string;
§
encode(bytes: Uint8Array): string
[src]

§Parameters

§
bytes: Uint8Array
[src]

to encode to base64

§Return Type

§
string
[src]