Probe the current environment for cryptographic and encoding capabilities.
A RuntimeCapabilities snapshot describing what is available in the current runtime.
import { getCapabilities } from "@aspect/crypto-edge";const caps = getCapabilities();if (caps.hasSubtle) { console.log("Web Crypto subtle API is available");} Copy
import { getCapabilities } from "@aspect/crypto-edge";const caps = getCapabilities();if (caps.hasSubtle) { console.log("Web Crypto subtle API is available");}
Probe the current environment for cryptographic and encoding capabilities.