jstime
Another JavaScript Runtime
Getting Started
Honestly I'm just learning rust right now 😅
Using the jstime binary
As a repl
>>
Run a script
;
)
It's a library too!
use script;
Another JavaScript Runtime
Honestly I'm just learning rust right now 😅
$ cargo run # run a js repl!
$ cargo run path-to-js.js # run a js file!
$ cargo build --release # make a prod build
$ jstime
Welcome to jstime!
>>
$ cat hello-world.js
console.log("hello world");
$ jstime hello-world.js
hello world
use jstime::script;
fn main() {
script::run("console.log('hello world')");
}