1.0.0 • Published 4 years ago
Ask text
Ask the user for a text input.
Install
npm install ask-text
Usage
const askText = require("ask-text");
(async () => {
const input = await askText("What do you like? ")
console.log(`I like ${input} too!`)
})()
API
askText(prompt)
prompt
Type: string
The text to prompt the user with.