Evaluate or run JavaScript files from the command line using a lightweight Rust-based engine.
Compare this engine's speed against other small JavaScript engines using its public benchmark page.
Embed the engine as the JavaScript runtime behind another tool, as es5-react does for terminal React rendering.
Open an interactive REPL to try out small pieces of ES5 JavaScript.
| ahaoboy/es5 | 132ikl/game | 1lystore/pay-dcp | |
|---|---|---|---|
| Stars | 2 | 2 | 2 |
| Language | Rust | Rust | Rust |
| Last pushed | — | 2020-12-30 | — |
| Maintenance | — | Dormant | — |
| Setup difficulty | easy | moderate | moderate |
| Complexity | 2/5 | 2/5 | 3/5 |
| Audience | developer | general | developer |
Figures from each repo's GitHub metadata at analysis time.
es5 is a small JavaScript engine written in the Rust programming language. It aims to be compatible with MuJS, an existing lightweight JavaScript interpreter written in C, and it is based on a specific version of that project, adjusted to follow the older ES5 version of the JavaScript language more strictly. The README is fairly short and mostly covers how to install and run it. You can build it with Cargo, Rust's package manager, then use the resulting command line tool in a few ways: evaluate a single line of JavaScript directly, run a JavaScript file, pipe code into it through standard input, or open an interactive prompt where you can type JavaScript and see results immediately. The project also tracks its own speed against other small JavaScript engines, including Boa, MuJS itself, and a project called Lumen, with a public benchmark page linked from the README so anyone can compare results. A separate, related project called es5-react uses this engine to render React components directly in a terminal window instead of a browser, using es5 as the JavaScript runtime that powers it. The README does not go into detail about which parts of the JavaScript language are supported or how complete the implementation is beyond aiming for ES5 compatibility, so anyone considering it for real use would need to check the source or try it directly. It is released under the MIT license.
A small, MuJS-compatible JavaScript engine written in Rust, usable as a command line interpreter, script runner, or REPL.
Mainly Rust. The stack also includes Rust, JavaScript, MuJS.
MIT license: free to use, modify, and distribute for any purpose, including commercial use, as long as you keep the copyright notice.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
double-check against the repo, no cap.