node repl

From their README

alfred-node-repl · GitHub license npm version

Alfred 3 workflow to evaluate javascript expression

Insall

npm install --global alfred-node-repl

Requires Node.js 8+ and the Alfred Powerpack.

Usage

in Alfred, type:

js>  
  • Enter to copy output to clipboard