@adviser/cement - v0.0.0
    Preparing search index...

    Interface Runtime

    Runtime environment detection result.

    Provides boolean flags indicating which JavaScript runtime environment the code is currently executing in. Only one flag should be true at a time, allowing for runtime-specific behavior and feature detection.

    const runtime = runtimeFn();
    if (runtime.isNodeIsh) {
    console.log('Running in Node.js or Bun');
    } else if (runtime.isBrowser) {
    console.log('Running in a browser');
    }
    interface Runtime {
        isNodeIsh: boolean;
        isBrowser: boolean;
        isDeno: boolean;
        isReactNative: boolean;
        isCFWorker: boolean;
    }
    Index

    Properties

    isNodeIsh: boolean

    True if running in Node.js or Node-compatible runtime (e.g., Bun)

    isBrowser: boolean

    True if running in a web browser

    isDeno: boolean

    True if running in Deno

    isReactNative: boolean

    True if running in React Native

    isCFWorker: boolean

    True if running in Cloudflare Workers