GiavaScript
A pragmatic JavaScript runtime

GiavaScript v0.10.0

GiavaScript is a small, cross-platform JavaScript runtime built in Crystal. It implements a curated subset of JavaScript, so you keep the familiar feel while running on a fast, practical runtime.

brew tap GiavaScript/giavascript && brew install giavascript

Quick start

Run a file with gs path/to/program.js, or open a REPL with gs.

var greet = (name) => `Hello, ${name}`;
var squares = [1, 2, 3, 4].map((n) => n * n);
var total = squares.reduce((sum, n) => sum + n, 0);

console.log(greet("GiavaScript")); // Hello, GiavaScript
console.log(JSON.stringify(squares)); // [1,4,9,16]
console.log(total); // 30