节点中的交互式命令行用户界面 [英] Interactive command line user interfaces in node

查看:52
本文介绍了节点中的交互式命令行用户界面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

命令 npm init,提出一系列问题并得到答案并将其写入文件?

The Command npm init, ask a series of questions and gets those answer and write it in a file?

如何在 node 中创建类似的命令行实用程序?

How can I create a similar command line utility in node?

有没有可用的包?

一些例子对我很有帮助.

Some Examples would be much helpful for me.

推荐答案

inquirier 包应该满足您的需求.看看他们在 github 上这里提供的示例

The inquirier package should meet your needs. Have a look at the examples they provide here on github

这篇关于节点中的交互式命令行用户界面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆