@marzeq/awaitinput
v1.0.2
Published
Async/await input function
Downloads
2
Readme
awaitinput
Async/await function to read input from the user.
Usage:
import { input } from "@marzeq/awaitinput"
const main = async () => {
const input = await input("What is your name? ")
console.log(`Hello, ${input}!`)
}
main().catch(console.error)