this is a simple node command prompt.
yarn add command-prompt
const prompt = require('command-prompt')
prompt('hello guys').then(anwser=>{
console.log('anwser',anwser)
})
const {confirm,mutil,password } = prompt
confirm('are you ok?').then(bool=>{
console.log('bool',bool)
})
mutil(['test 1 ','test 2']).then(anwserArr=>{
console.log('anwserArr',anwserArr)
})
password('please enter your password').then(password=>{
console.log('password',password)
})
MIT