A JavaScript runtime written in Rust, powered by the V8 engine.
ikoy (pronounced like "ai-koi") is a minimal JavaScript runtime that allows you to execute JavaScript code.
- Rust (latest stable version)
- Cargo
git clone https://github.com/shimech/ikoy.git
cd ikoy
cargo build --releaseThe binary will be available at target/release/ikoy.
Run a JavaScript file directly, just like Node.js:
ikoy script.jsExample:
ikoy javascript/example.js
# Output:
# Hello, This is a JavaScript file!
# 1 + 2 = 3Use the --print (or -p) flag to evaluate JavaScript code and print the result:
ikoy -p "1 + 2"
# Output: 3ikoy -p "'Hello' + ' World!'"
# Output: Hello World!Usage: ikoy [OPTIONS] [script.js]
Arguments:
[script.js] Path to the JavaScript file
Options:
-p, --print <...> Evaluate JavaScript code and print result
-h, --help Print help
-V, --version Print version
cargo testcargo buildcargo run -- javascript/example.js
cargo run -- -p "your code here"This project is licensed under the MIT License - see the LICENSE file for details.
This is a learning project for studying JavaScript runtime implementation with Rust and V8.
Shuntaro Shimizu