简体   繁体   English

带有 UI 的 Nodejs CLI 应用程序

[英]Nodejs CLI application with UI

I want to run a NodeJS command line application with a small window.我想运行一个带有小窗口的 NodeJS 命令行应用程序。 It should be possible to defined a form in this window and process the input data.应该可以在此窗口中定义一个表单并处理输入数据。

Can you recommend a npm?你能推荐一个 npm 吗? I thought there is one which opens a light version of a browser window and you could implement functions for form tags.我认为有一个可以打开浏览器窗口的轻型版本,您可以实现表单标签的功能。 So I could defined a HTML form and work with it.所以我可以定义一个 HTML 表单并使用它。 But I can't find it anymore.但我再也找不到了。

I don't want to open a browser with cmd() because it's just a configuration window and a web server is not needed.我不想用 cmd() 打开浏览器,因为它只是一个配置窗口,不需要 Web 服务器。

First of all a CLI application with a GUI is called a desktop application.首先,带有 GUI 的 CLI 应用程序称为桌面应用程序。 if you want to develop desktop GUI applications using NodeJS you can use Electron, in fact many of the applications you might be using regularly are built with Electron like Skype, VScode,...etc如果您想使用 NodeJS 开发桌面 GUI 应用程序,您可以使用 Electron,事实上,您可能经常使用的许多应用程序都是使用 Electron 构建的,例如 Skype、VScode 等

PS: you should do more research before you ask a question on SO PS:在问SO问题之前你应该做更多的研究

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM