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
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
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