4 ms·
I wonder if you included a JS REPL/console in your terminal if you'd hit an interesting enough hybrid. Something like Puppeteer/Playwright where you can spin u
by WorldMaker 4y ago
I wonder if you included a JS REPL/console in your terminal if you'd hit an interesting enough hybrid.
Something like Puppeteer/Playwright where you can spin up headless Chrome instances from the terminal, interact with them and automate them in JS. Treat the JS as a mini shell script language in your terminal of choice.
I'm almost surprised there isn't yet a terminal that is an intentional JS-hybrid where you can REPL JS and/or directly shell script in it (beyond just Node scripts).
Probably not entirely worth the time to build such Rube Goldberg contraptions, but an interesting thought experiment at least.
- Per_Bothner 4y agoDomTerm (https://domterm.org https://domterm.org) isn't quite what you asked for: It only indirectly has a JavaScript console: Since its frontend is a browser engine, you can open up a JavaScript debugger. However, DomTerm can display "rich text" - html, images, mathml and more. Also, there are (tentative) plans to allow loading JavaScript scripts for interesting extensions.