ask-text
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Ask text Travis CI Build Status

Ask the user for a text input.

NPM Badge

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.

Package Sidebar

Install

npm i ask-text

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

3.11 kB

Total Files

7

Last publish

Collaborators

  • richienb