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
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

Build gen AI apps with an all-in-one modern database: MongoDB Atlas

MongoDB Atlas provides built-in vector search and a flexible document model so developers can build, scale, and run gen AI apps without stitching together multiple databases. From LLM integration to semantic search, Atlas simplifies your AI architecture—and it’s free to get started.
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