agentOS API Reference - v0.0.1
    Preparing search index...

    Interface JavaScriptRuntimeOptions

    interface JavaScriptRuntimeOptions {
        cwd?: string;
        env?: Record<string, string>;
        files?: Record<string, string | Uint8Array<ArrayBufferLike>>;
        nodeModules?: any;
    }

    Hierarchy (View Summary)

    Index
    cwd?: string

    Default working directory for JavaScript and TypeScript executions.

    env?: Record<string, string>

    Default environment merged into each JavaScript and TypeScript execution.

    files?: Record<string, string | Uint8Array<ArrayBufferLike>>

    Files to seed into the VM before create() resolves.

    nodeModules?: any

    Project a host node_modules tree into the VM at /root/node_modules.