Crypto Edge
    Preparing search index...

    Interface RuntimeCapabilities

    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,
    };
    interface RuntimeCapabilities {
        runtime: EdgeRuntime;
        hasWebCrypto: boolean;
        hasSubtle: boolean;
        hasNodeCrypto: boolean;
        hasTextEncoder: boolean;
    }
    Index
    runtime: EdgeRuntime

    Detected runtime environment.

    hasWebCrypto: boolean

    Whether the global crypto object exists.

    hasSubtle: boolean

    Whether crypto.subtle is available (required for most operations).

    hasNodeCrypto: boolean

    Whether the Node.js node:crypto module is available.

    hasTextEncoder: boolean

    Whether TextEncoder / TextDecoder are available.