@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 infoconst info = getBinaryInfo();console.log(`Platform: ${info.platform.targetTriple}`);console.log(`Cached: ${info.isCached}`);// Ensure binary is downloadedconst binaryPath = await ensureBinary();// Run the server. It is configured through its environment only.const exitCode = await runBinary([], { env: { ...process.env, PORT: '3001' } }); Copy
import { runBinary, ensureBinary, getBinaryInfo } from '@ifc-lite/server-bin';// Get binary infoconst info = getBinaryInfo();console.log(`Platform: ${info.platform.targetTriple}`);console.log(`Cached: ${info.isCached}`);// Ensure binary is downloadedconst binaryPath = await ensureBinary();// Run the server. It is configured through its environment only.const exitCode = await runBinary([], { env: { ...process.env, PORT: '3001' } });
Check if binary exists and is the correct version.
@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: