@marzeq/awaitinput
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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)

Readme

Keywords

none

Package Sidebar

Install

npm i @marzeq/awaitinput

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

8.35 kB

Total Files

6

Last publish

Collaborators

  • marzeq