ask_for2
v1.0.4
Published
轻量级的命令行输入工具
Downloads
3
Readme
说明(中文)
轻量级的命令行输入工具
用法
用例:
const askFor = require('ask_for2');
const {AskFor, askForConfirm} = require('@x_g/ask_for');
var response = await askFor("please enter");
var response = await askForConfirm("");
//肯定输入返回true,否定返回false,其余返回undefined