IFClite TypeScript API
    Preparing search index...

    Function isBinaryCached

    @ifc-lite/server-bin

    Pre-built IFC-Lite server binary - run without Docker or Rust.

    CLI Usage: npx @ifc-lite/server-bin npx ifc-lite-server

    Programmatic Usage:

    import { runBinary, ensureBinary, getBinaryInfo } from '@ifc-lite/server-bin';

    // Get binary info
    const info = getBinaryInfo();
    console.log(`Platform: ${info.platform.targetTriple}`);
    console.log(`Cached: ${info.isCached}`);

    // Ensure binary is downloaded
    const binaryPath = await ensureBinary();

    // Run the server
    const exitCode = await runBinary(['--help']);
    • Check if binary exists and is the correct version.

      Returns Promise<boolean>