William Caetano William Caetano - 2 months ago 10
Javascript Question

How can I create a Javascript application to run in the Linux terminal?

I want to create a Javascript (using Electron) app, but I want this app to be run and executed with terminal commands, like how you run

git
, is there a way to accomplish this?

I know that python and ruby are better languages for this purpose but I have a reason to use electron.

Answer

For non-GUI applications, you can just use node.js directly. If you want to make a TUI, you can use node.js + a module like blessed (and possibly blessed-contrib).

Comments