JSPM

ask-text

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q25694F
  • License MIT

Ask the user for a text input.

Package Exports

  • ask-text

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ask-text) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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.