prompts has no big dependencies nor is it broken into a dozen tiny modules that only work well together. prompt uses layout and colors to create beautiful cli interfaces. prompts uses promises and async/await. No callback hell. All prompts are independent and can be used on their own. Provides a way to submit answers programmatically. Consistent experience across all prompts. Prompt with a single prompt object. Returns an object with the response. Prompt with a list of prompt objects. Returns an object with the responses. Make sure to give each prompt a unique name property to prevent overwriting values. Prompt properties can be functions too. Prompt Objects with type set to falsy values are skipped. Prompter function which takes your prompt objects and returns an object with responses. Prompts can be submitted (return, enter) or canceled (esc, abort, ctrl+c, ctrl+d). No property is being defined on the returned response object when a prompt is canceled.

Features

  • User friendly
  • Prompt message to display
  • Default number value
  • Receive user input
  • Interactive multi-select prompt
  • Hint to display to the user

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Prompts

Prompts Web Site

Other Useful Business Software
Forever Free Full-Stack Observability | Grafana Cloud Icon
Forever Free Full-Stack Observability | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Prompts!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Terminals, JavaScript User Interface (UI) Software

Registered

2021-08-19