constructor(options: DenoSandboxOptions = {}): DenoSandbox| Name | Type | Description |
|---|---|---|
options | DenoSandboxOptions | Default: {}Configuration options for the sandbox |
// Two-step initialization
const sandbox = new DenoSandbox({ memory: "1GiB" });
await sandbox.initialize();
// Or use the factory method
const sandbox = await DenoSandbox.create({ memory: "1GiB" });Create a new DenoSandbox instance.
Note: This only creates the instance. Call initialize() to actually
create the Deno Sandbox, or use the static DenoSandbox.create() method.