Module

x/jose/key/export.ts>exportSPKI

"JSON Web Almost Everything" - JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, Bun, and other Web-interoperable runtimes.
Extremely Popular
Go to Latest
function exportSPKI
import { exportSPKI } from "https://dotland.deno.dev/x/jose@v4.15.0/key/export.ts";

Exports a runtime-specific public key representation (KeyObject or CryptoKey) to a PEM-encoded SPKI string format.

Parameters

key: KeyLike

Key representation to transform to a PEM-encoded SPKI string format.

Returns

Promise<string>