quickjs

Small and embeddable JavaScript engine with REPL and script execution

brewmacoslinux
Try with needOr install directly
Source

About

Small and embeddable JavaScript engine

Commands

qjsqjsc

Examples

Start interactive REPL to run JavaScript commands$ qjs
Execute a JavaScript file$ qjs script.js
Compile JavaScript to bytecode$ qjsc -o output.so script.js