otter-engine 0.1.2

Otter JavaScript engine
docs.rs failed to build otter-engine-0.1.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.

otter-engine

High-level JavaScript/TypeScript execution engine for Otter.

Overview

otter-engine provides the high-level API for executing JavaScript and TypeScript code with Otter. It handles module resolution, file loading, and orchestrates the runtime.

Usage

Add to your Cargo.toml:

[dependencies]
otter-engine = "0.1"

Basic Example

use otter_engine::Engine;

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    let engine = Engine::new()?;

    // Run a TypeScript file
    engine.run_file("src/index.ts").await?;

    Ok(())
}

License

MIT