{"name":"@inquirer/rawlist","version":"1.0.0","keywords":["answer","answers","ask","base","cli","command","command-line","confirm","enquirer","generate","generator","hyper","input","inquire","inquirer","interface","iterm","javascript","menu","node","nodejs","prompt","promptly","prompts","question","readline","scaffold","scaffolder","scaffolding","stdin","stdout","terminal","tty","ui","yeoman","yo","zsh"],"author":{"name":"Simon Boudrias","email":"admin@simonboudrias.com"},"license":"MIT","_id":"@inquirer/rawlist@1.0.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":"87079a616d5db00ef324a35568bebeabb6401149","tarball":"http://registry-npm.ywwl.com/@inquirer/rawlist/download/@inquirer/rawlist-1.0.0.tgz","fileCount":7,"integrity":"sha512-7wKwo+Y9Gw99rafQmkn3q7uq+z0YLSgubk6r5zvGZERv8K0JhH6/zO2OY72LrjzMjg6DkPmBRqsOASlEoTA1yw==","signatures":[{"sig":"MEYCIQCmkpbzVU4+Jz3wMw+6E5iK02HlaA4YVXOcUVP7UCYEMwIhAJ5oD4+eNLLKz/dG4PSkr0UoDG0zN70ZK4Qc7ZHlyMed","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9316,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkRZ/TACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq1vRAAjmx/B84lndIZTCK2tIXD4cdxvVyFFoAAb3sITpIEaBFXMkEl\r\ntffnc8fC/kqQW+YT/mGLO2AvW9dZCbjVz/2ZNH94l53uo50tGURSMUJDN9hS\r\n3ogt11R3JJL2IZzh5+paKDzolcANmZdEnX02vEDV4aFPvA2wtbZ0grcCjX7F\r\n8uYK9Jb9tMv1H76gSwJpoW3biEJhq49Sk8NHxyAHKtQAhODDYU7Ucz2gyex+\r\nrQ4RRsBXVPhMtrInwFhGX03USH9z9o/MsuWcxT3b24b93OwlZltdKfgposQ8\r\n8j8OWYFWerndWsDTRy+XCIuO6tn1CiC24rNOWs6pNlzUZW/68WqLCIfVnkJG\r\nVOMd3yPEaVVyoIpE70b3uXjQtDRJO2Iis4bhN+fw2FPaDpUtN+KB89CTJz5L\r\n1u0mfQulWNmzS29/2+AMYflAoRE/JY0tBcX35FLg3vm0iEJIFObA7vxas+XG\r\n5gaf/PYLYdiM97edtiPmAw3Fy7Y+BP33y7j5JQMd9cmYgzQLjUq15DhVX4V2\r\nJNHrNrb2s2OBmR2tmSg4BIl98pKJsy1ZnE7Y5mv6gB/njE0ZF6ey8iFXOqBz\r\nXn6FG98sJbzmNYO7M5CYjpkhKlMLE8IZKelaLUtrVuOXsURDOa3b4I8CMAOi\r\n+USroWRd4Lgcm7BxrPTCvyKtp/nNLLtgXy4=\r\n=QaFB\r\n-----END PGP SIGNATURE-----\r\n","size":3221,"noattachment":false,"key":"/@inquirer/rawlist/-/@inquirer/rawlist-1.0.0.tgz"},"main":"./dist/cjs/index.js","engines":{"node":">=14.18.0"},"exports":{".":{"import":{"types":"./dist/esm/types/index.d.mts","default":"./dist/esm/index.mjs"},"require":{"types":"./dist/cjs/types/index.d.mts","default":"./dist/cjs/index.js"}}},"gitHead":"e93c4cb14f0c35ebd1efb065776b90f48899b075","scripts":{"tsc":"yarn run clean && yarn run tsc:esm && yarn run tsc:cjs","clean":"rm -rf dist","fix-ext":"ts-node ../../tools/rename-ext.ts","tsc:cjs":"tsc -p ./tsconfig.cjs.json && yarn run fix-ext","tsc:esm":"tsc -p ./tsconfig.esm.json"},"typings":"./dist/cjs/types/index.d.mts","_npmUser":{"name":"sboudrias","email":"admin@simonboudrias.com"},"repository":{"url":"git+https://github.com/SBoudrias/Inquirer.js.git","type":"git"},"_npmVersion":"lerna/6.5.1/node@v16.17.1+arm64 (darwin)","description":"Inquirer rawlist prompt","directories":{},"_nodeVersion":"16.17.1","dependencies":{"chalk":"^5.2.0","@inquirer/core":"^1.0.1","@inquirer/type":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/rawlist_1.0.0_1682284498992_0.2861995531624326","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":1682284499203,"_cnpm_publish_time":1682284499203,"dist-tags":{"latest":"5.4.0"}}