{"name":"@inquirer/rawlist","version":"0.0.9-alpha.0","keywords":["cli","command","line","list","form","input","prompt","terminal"],"author":{"name":"Simon Boudrias","email":"admin@simonboudrias.com"},"license":"MIT","_id":"@inquirer/rawlist@0.0.9-alpha.0","maintainers":[{"name":"sboudrias","email":"admin@simonboudrias.com"},{"name":"danielchatfield","email":"chatfielddaniel@gmail.com"},{"name":"mischah","email":"mail@michael-kuehnel.de"}],"homepage":"https://github.com/SBoudrias/Inquirer.js/blob/master/packages/rawlist/README.md","bugs":{"url":"https://github.com/SBoudrias/Inquirer.js/issues"},"dist":{"shasum":"05934ec99402814a3721f4f84a1bd35c83c577b1","tarball":"http://registry-npm.ywwl.com/@inquirer/rawlist/download/@inquirer/rawlist-0.0.9-alpha.0.tgz","fileCount":5,"integrity":"sha512-jj0Hhf8L9ZBDdBuREYIBbJfclKiQAC0lufVrrrvsxiUz9f+4ZgC2tbWhQ45+GTrNIJ9JafxdidgLw+vTJ3CfEw==","signatures":[{"sig":"MEQCIC2+vaX/H4T7zXyTT19FXOyxh4Z7wlRb/Wga/mnC9ryhAiBB/2wMcw1Iw+eLTT2qBUbrttpkoDu3QbvC36sBjWd2FQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5535,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjD6m5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoBcRAAlapm9b99NQTexkhvP7HGysQ3Kijw1SP4Rjxl03rliPyVEUlk\r\nH+66yvah8bHjVWbIV1uUJaRWiTGzhodca209mYKXzZd8DPDkno8jidXkR77G\r\nRYnNuZ6JSMjvKbImfh/7YQouNgxEbhcq+imwLnqk3fJmPuCMIim5ltNtzeNb\r\nCM5OrdQjEKwdJMTot69bw09wAa5H5rqdqGUDxxmOkiVWrb7GIT4ObUiZll4P\r\nszr30s7xcQZSEuUphZl+6iRjV3XjjiSPBvnq2ZkcHFUqGUUb7imXlogk9OfP\r\najh7dGzfs7PDvTq8Xoeu9x0mi+6IvWfTxMFEDL2fdRGlHFmJR787tigz34g4\r\nu09PPBM5F9ppATcC90nxVfcKm/p9LOamYNZnjSRiDuh7fbTIBJ6w67XRE0UY\r\nk+iWQZjlNnpftVl8hf9P5OJwhJNg/Rx8OCrcmhkm2rEU8dltCCZxn93PiCM7\r\nlg+B2zwssY95oqAsgVaZGzRTbceM4RoWdXsqDjhANX5/8f1tgD4jKJOJuBTb\r\nkEMXYCKO4R1zDkkuJWu3gXUNl15PeSYvx6e7kNDMCnGC32VGI3TZfUkLKDsT\r\nvYljkCjCHwgS/dwwfRcnVZUoLSHGlaMcPSnn67mOchBcauNqW55eck61n/KF\r\nk6En7jH59vOLnnSQgHlCKezfxQ/mhf5FW4I=\r\n=7Lke\r\n-----END PGP SIGNATURE-----\r\n","size":2622,"noattachment":false,"key":"/@inquirer/rawlist/-/@inquirer/rawlist-0.0.9-alpha.0.tgz"},"main":"dist/index.js","type":"module","gitHead":"6e0a7e28b5ac9fc526cf787e0b6c53cb44bd7ae3","scripts":{"tsc":"tsc"},"typings":"dist/index.d.ts","_npmUser":{"name":"sboudrias","email":"admin@simonboudrias.com"},"repository":{"url":"git+https://github.com/SBoudrias/Inquirer.js.git","type":"git"},"_npmVersion":"lerna/5.4.3/node@v18.4.0+x64 (darwin)","description":"Inquirer rawlist prompt","directories":{},"_nodeVersion":"18.4.0","dependencies":{"chalk":"^5.0.1","@inquirer/core":"^0.0.26-alpha.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/rawlist_0.0.9-alpha.0_1661970873757_0.5915030768502096","host":"s3://npm-registry-packages"},"readme":"# `@inquirer/rawlist`\n\nSimple interactive command line prompt to display a raw list of choices (single value select) with minimal interaction.\n\n![rawlist prompt](https://cdn.rawgit.com/SBoudrias/Inquirer.js/28ae8337ba51d93e359ef4f7ee24e79b69898962/assets/screenshots/rawlist.svg)\n\n# Installation\n\n```sh\nnpm install @inquirer/rawlist\n\nyarn add @inquirer/rawlist\n```\n\n# Usage\n\n```js\nimport rawlist from '@inquirer/rawlist';\n\nconst answer = await rawlist({\n  message: 'Select a package manager',\n  choices: [\n    { name: 'npm', value: 'npm' },\n    { name: 'yarn', value: 'yarn' },\n    { name: 'pnpm', value: 'pnpm' },\n  ],\n});\n```\n\n## Options\n\n| Property | Type                                                    | Required | Description                                                                                                                                                                                                              |\n| -------- | ------------------------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |\n| message  | `string`                                                | yes      | The question to ask                                                                                                                                                                                                      |\n| choices  | `Array<{ value: string, name?: string, key?: string }>` | yes      | List of the available choices. The `value` will be returned as the answer, and used as display if no `name` is defined. By default, choices will be selected by index. This can be customized by using the `key` option. |\n| theme    | [See Theming](#Theming)                                 | no       | Customize look of the prompt.                                                                                                                                                                                            |\n\n## Theming\n\nYou can theme a prompt by passing a `theme` object option. The theme object only need to includes the keys you wish to modify, we'll fallback on the defaults for the rest.\n\n```ts\ntype Theme = {\n  prefix: string;\n  spinner: {\n    interval: number;\n    frames: string[];\n  };\n  style: {\n    answer: (text: string) => string;\n    message: (text: string) => string;\n    error: (text: string) => string;\n    highlight: (text: string) => string;\n  };\n};\n```\n\n# License\n\nCopyright (c) 2023 Simon Boudrias (twitter: [@vaxilart](https://twitter.com/Vaxilart))<br/>\nLicensed under the MIT license.\n","publish_time":1661970873886,"_cnpm_publish_time":1661970873886,"dist-tags":{"latest":"5.4.0"}}