{"_id":"@axway/inquirer-checkbox-plus-prompt","_rev":"10-1e32da7271dc9f130c18f3b9fe73c421","name":"@axway/inquirer-checkbox-plus-prompt","dist-tags":{"latest":"1.1.0"},"versions":{"1.1.0":{"name":"@axway/inquirer-checkbox-plus-prompt","version":"1.1.0","keywords":["inquirer","checkbox","autocomplete","search","filter","searchable","highlight","source","api","promise","command","prompt","stdin","cli","tty","menu"],"author":{"name":"Mohammad Fares","email":"faressoft.com@gmail.com"},"license":"MIT","_id":"@axway/inquirer-checkbox-plus-prompt@1.1.0","maintainers":[{"name":"nkeranova","email":"nkeranova@axway.com"},{"name":"axway-npm","email":"builder11@axway.com"},{"name":"cb1kenobi","email":"chris@cb1inc.com"},{"name":"jamie.peabody","email":"jamie.peabody@gmail.com"},{"name":"awam","email":"ewanharris93@gmail.com"},{"name":"bladedancer","email":"bladedancer.gavin@gmail.com"},{"name":"axway_darnaudov","email":"darnaudov@axway.com"},{"name":"ddimonov-axway","email":"ddimonov@axway.com"},{"name":"neon-axway","email":"cshantakumar@axway.com"},{"name":"vchauhan","email":"vchauhan@axway.com"},{"name":"mdimitrova","email":"mdimitrova@axway.com"},{"name":"pdzhorev","email":"pdzhorev@axway.com"},{"name":"axway_alasdair","email":"ahurst@axway.com"},{"name":"pltod2","email":"pl.todorov@gmail.com"},{"name":"npetrovski-axway","email":"npetrovski@axway.com"},{"name":"pbozhkovaxway","email":"pbozhkov@axway.com"},{"name":"mbonchev-axway","email":"mbonchev@axway.com"},{"name":"axway-vertex","email":"agrakhov@axway.com"},{"name":"cdobrica","email":"cdobrica@axway.com"}],"homepage":"https://github.com/Axway/inquirer-checkbox-plus-prompt#readme","bugs":{"url":"https://github.com/Axway/inquirer-checkbox-plus-prompt/issues"},"dist":{"shasum":"f126466f2417f6256418cd4750e7c5f27c0a8310","tarball":"https://registry.npmjs.org/@axway/inquirer-checkbox-plus-prompt/-/inquirer-checkbox-plus-prompt-1.1.0.tgz","fileCount":11,"integrity":"sha512-J6CtE6fCtXerPFQ/vFysI6nhalxAKbBRfnMajyx4wWvU6u43LplVFj96XjAuxna6bfyW5aH7ZFe0eSy6wGjNCA==","signatures":[{"sig":"MEYCIQCzi3BLGmg4/67ngTYfYwaJIsTcvkY9luydWcTqIKdYWQIhAIRuoH2Pe0nwUBXjqk7xg6145Fps1BPEckyt6iN9fPcX","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":106429,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzG/ECRA9TVsSAnZWagAAZPMP/j9bFpygQ77KVmUvu2wG\nH5BgWyxPRIlfLCOYy19EoeVzCi+ok24Fb/uhge8h7AW3NHRx+0X4+ZKprGFA\nJSYmh4KzjWrup2GipW9eCEdM/fpsVOrZxZs+FG9veUzmQuiE2lpmidZYyWxF\nwAfjVAed8xv9a2BkF7SJ2znAHhNk5Q1cmwObKVSo+z5wKv+o8NS4kiPkUAi4\nPd57IPyszKBDy0HOfMheuXlJ3xIudFDBfOyGAA1fG9uhtTEi2IqXC/+6X2C4\nkw3RdeSYpQ7sIgSvvW8vu3GAktayKfugKfD6T2iDQ+Q5M1ysI/wgfLkolfJT\nKHwUOqPbGoAH7zXz9xiFwC5nshsiv1IGM9tRx6oAcyMmzp/KdxwXPylrSBH2\nsdZqpgba8YgOogx7QkGzo7gQaYRtfQYACqgsSwP6GkZQbSPG82lTA94efY/p\nminqQM4qbY1Et7hndT2p2Wa2TWW71cJ94kFccllZmaxsha3xzHPQ4sTmn7jW\nWFaswOrMJZzFcSUJwRmMlItNBAYnp/mjcux973IHAhVkpgKA6uELyBmq7vtJ\nAWrMQlaPJan4GR4d1aC/4ISygOLXsBXjpwyWgglC5oHlhjifhzEzBFkMuJUH\nZ0bbV0R4R1jR8EQjBxz9AXvOkIvXQWXjvj9uWZS4IPxiIuMBR2IA4lt+XXeT\nWXbN\r\n=v8E+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"e570d2ba82d80570fedea7313227874d31a07fbb","_npmUser":{"name":"jamie.peabody","email":"jamie.peabody@gmail.com"},"repository":{"url":"git+https://github.com/Axway/inquirer-checkbox-plus-prompt.git","type":"git"},"_npmVersion":"6.13.4","description":"Checkbox with autocomplete and other additions for Inquirer","directories":{},"_nodeVersion":"8.17.0","dependencies":{"rxjs":"^6.6.7","lodash":"^4.17.5","figures":"^3.0.0","inquirer":"^7.3.3","cli-cursor":"^3.1.0"},"_hasShrinkwrap":false,"devDependencies":{"fuzzy":"^0.1.3"},"_npmOperationalInternal":{"tmp":"tmp/inquirer-checkbox-plus-prompt_1.1.0_1634323415698_0.6954523544867615","host":"s3://npm-registry-packages"}}},"time":{"created":"2021-10-15T18:43:35.647Z","modified":"2025-07-25T08:30:41.952Z","1.1.0":"2021-10-15T18:43:36.095Z"},"bugs":{"url":"https://github.com/Axway/inquirer-checkbox-plus-prompt/issues"},"author":{"name":"Mohammad Fares","email":"faressoft.com@gmail.com"},"license":"MIT","homepage":"https://github.com/Axway/inquirer-checkbox-plus-prompt#readme","keywords":["inquirer","checkbox","autocomplete","search","filter","searchable","highlight","source","api","promise","command","prompt","stdin","cli","tty","menu"],"repository":{"url":"git+https://github.com/Axway/inquirer-checkbox-plus-prompt.git","type":"git"},"description":"Checkbox with autocomplete and other additions for Inquirer","maintainers":[{"email":"nkeranova@axway.com","name":"nkeranova"},{"email":"builder11@axway.com","name":"axway-npm"},{"email":"bladedancer.gavin@gmail.com","name":"bladedancer"},{"email":"ddimonov@axway.com","name":"ddimonov-axway"},{"email":"ashtripathi@axway.com","name":"neon-axway"},{"email":"vchauhan@axway.com","name":"vchauhan"},{"email":"mdimitrova@axway.com","name":"mdimitrova"},{"email":"pdzhorev@axway.com","name":"pdzhorev"},{"email":"ahurst@axway.com","name":"axway_alasdair"},{"email":"pl.todorov@gmail.com","name":"pltod2"},{"email":"mbonchev@axway.com","name":"mbonchev-axway"},{"email":"bchristiansen@axway.com","name":"axway-vertex"},{"email":"npm.modules@axway.com","name":"buildernpmuser"}],"readme":"# Inquirer Checkbox Plus Prompt\n\nA plugin for [Inquirer](https://github.com/SBoudrias/Inquirer.js), similar to the original checkbox with extra features.\n\n[![npm](https://img.shields.io/npm/v/inquirer-checkbox-plus-prompt.svg)](https://www.npmjs.com/package/inquirer-checkbox-plus-prompt)\n[![npm](https://img.shields.io/npm/l/inquirer-checkbox-plus-prompt.svg)](https://github.com/faressoft/inquirer-checkbox-plus-prompt/blob/master/LICENSE)\n\n![Demo](/demo.gif?raw=true)\n\n# Installation\n\n```\nnpm install -g inquirer-checkbox-plus-prompt\n```\n\n# Usage\n\nYou can name it with any name other than `checkbox-plus`, just change the string `'checkbox-plus'` to anything else.\n\n```js\ninquirer.registerPrompt('checkbox-plus', require('inquirer-checkbox-plus-prompt'));\n\ninquirer.prompt({\n  type: 'checkbox-plus',\n  ...\n})\n```\n\n# Options\n\nTakes `type`, `name`, `message`, `source`[, `filter`, `validate`, `default`, `pageSize`, `highlight`, `searchable`] properties.\n\nThe extra options that this plugin provides are:\n\n* **source**: (Function) a method that called to return a promise that should be resolved with a list of choices in a similar format as the `choices` option in the original `checkbox` prompt of `Inquirer`.\n* **highlight**: (Boolean) if `true`, the current selected choice gets highlighted. Default: `false`.\n* **searchable**: (Boolean) if `true`, allow the user to filter the list. The `source` function gets called everytime the search query is changed. Default: `false`.\n\n# Example\n\nCheck [example.js](/example.js?raw=true) for a more advanced example.\n\n```js\nvar inquirer = require('inquirer');\nvar fuzzy = require('fuzzy');\n\ninquirer.registerPrompt('checkbox-plus', require('./index'));\n\nvar colors = ['red', 'green', 'blue', 'yellow'];\n\ninquirer.prompt([{\n  type: 'checkbox-plus',\n  name: 'colors',\n  message: 'Enter colors',\n  pageSize: 10,\n  highlight: true,\n  searchable: true,\n  default: ['yellow', 'red'],\n  source: function(answersSoFar, input) {\n\n    input = input || '';\n\n    return new Promise(function(resolve) {\n\n      var fuzzyResult = fuzzy.filter(input, colors);\n\n      var data = fuzzyResult.map(function(element) {\n        return element.original;\n      });\n\n      resolve(data);\n      \n    });\n\n  }\n}]).then(function(answers) {\n\n  console.log(answers.colors);\n\n});\n```\n\n# License\n\nThis project is under the MIT license.\n","readmeFilename":"README.md"}