#quickjs #console #log #runjs

jsexec

run javascript console.log to result

8 releases

0.1.7 Nov 29, 2022
0.1.6 Nov 28, 2022

#839 in WebAssembly

32 downloads per month
Used in regexp2rust_macro

Apache-2.0

1.5MB
68 lines

    use jsexec::runjs;
    assert_eq!(runjs("console.log(\"hello\")").unwrap(),"hello\n");

for workspace

#Cargo.toml
[workspace]
members = ["yourcrate"]
resolver = "2"

Dependencies

~13–24MB
~395K SLoC