mujs

Embeddable JavaScript interpreter for running JS code standalone.

brewmacoslinux
Try with needOr install directly
Source

About

Embeddable Javascript interpreter

Commands

mujs

Examples

run a JavaScript file from the command line$ mujs script.js
start an interactive JavaScript console$ mujs
execute JavaScript code directly without a file$ mujs -e 'console.log(2 + 3)'
test JavaScript snippets in a REPL environment$ mujs
embed JavaScript in C programs$ mujs program.js