Socket
Socket
Sign inDemoInstall

@justinc/choices

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@justinc/choices

Inquirer.js wrapper for asking user to select from a list of choices


Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

NPM

Inquirer.js wrapper for asking user to select from a list of choices.

Installation

npm install @justinc/choices

Usage

require('@justinc/choices')({ message: 'Make your selection' }).then(answer => {
  console.log('You chose:', answer.choice);
});
require('@justinc/choices')({ message: 'Make your selection', choices: ['blue pill', 'red pill'] }).then(answer => {
  console.log('You chose:', answer.choice);
});

Object Argument:

  • type: See type here. (default: 'list')
  • name: See name here. (default: 'choice')
  • message: See message here. (default: 'Select one of the following')
  • default: See default here. (default: `['yes', 'no', 'skip'])

FAQs

Package last updated on 08 Oct 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc