Describes the cryptographic and encoding APIs available in the current runtime.
import type { RuntimeCapabilities } from "@aspect/crypto-edge";const caps: RuntimeCapabilities = { runtime: "node", hasWebCrypto: true, hasSubtle: true, hasNodeCrypto: true, hasTextEncoder: true,}; Copy
import type { RuntimeCapabilities } from "@aspect/crypto-edge";const caps: RuntimeCapabilities = { runtime: "node", hasWebCrypto: true, hasSubtle: true, hasNodeCrypto: true, hasTextEncoder: true,};
Detected runtime environment.
Whether the global crypto object exists.
crypto
Whether crypto.subtle is available (required for most operations).
crypto.subtle
Whether the Node.js node:crypto module is available.
node:crypto
Whether TextEncoder / TextDecoder are available.
TextEncoder
TextDecoder
Describes the cryptographic and encoding APIs available in the current runtime.
Example