Socket
Socket
Sign inDemoInstall

prompt-choices

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prompt-choices - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

10

index.js

@@ -80,2 +80,12 @@ 'use strict';

/**
* Toggle the choice at the given `idx`.
* @param {Number} `idx` The index of the choice to toggle.
*/
Choices.prototype.toggle = function(idx) {
var checked = this.getChoice(idx).checked;
this.getChoice(idx).checked = !checked;
};
/**
* Match the valid choices against a where clause

@@ -82,0 +92,0 @@ * @param {Object} whereClause Lodash `where` clause

2

package.json
{
"name": "prompt-choices",
"description": "Create an array of multiple choice objects for use in prompts.",
"version": "0.1.0",
"version": "0.1.1",
"homepage": "https://github.com/enquirer/prompt-choices",

@@ -6,0 +6,0 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",

# prompt-choices [![NPM version](https://img.shields.io/npm/v/prompt-choices.svg?style=flat)](https://www.npmjs.com/package/prompt-choices) [![NPM downloads](https://img.shields.io/npm/dm/prompt-choices.svg?style=flat)](https://npmjs.org/package/prompt-choices)
Create an array of multiple choice objects for use in prompts.
> Create an array of multiple choice objects for use in prompts.

@@ -62,2 +62,2 @@ ## Install

_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.1.30, on August 28, 2016._
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.1.30, on August 29, 2016._
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