{"name":"@inquirer/rawlist","version":"0.0.7-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.7-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":"050635a05057070bd182d0e72e345bc99d1b0380","tarball":"http://registry-npm.ywwl.com/@inquirer/rawlist/download/@inquirer/rawlist-0.0.7-alpha.0.tgz","fileCount":5,"integrity":"sha512-2t+33GJLrdOYfLY4DzcQ4/gGmRsutPiYwCfw3jx5+QzaXM8T+n02Q2IrV99O7negY7vffI5PFTC0jgzEXrOxmQ==","signatures":[{"sig":"MEUCIQD9qaZLyTrS+A6Vywecg7tci3fy4fpf10SP9oInd4DoVwIgHZjYy9iWXX+p8SCMShvhzItXcJZyetIhOXuRdZMEPak=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5644,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi/49+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqkHQ/9HiUepcq4Fed3dB+jUc4Pbl1YKaDQsyZqKC8kUy0nH94cpaVg\r\nCKVejUv97pahfXEjEBGJ9d0yawLe8zpvwlRl6uoR5HBaLBcdJd4pSCk1oBZQ\r\n7BNkxDXNJJwNvkEnmNS3787fiRcup/H+iO1t2uagNHuYd6AK/k4vCDjbf0Sv\r\nSi2SHIBFCZnwrQ43e0LyC98SxQz+H9vGBDCB13YxQ5F9hF0k7om32Eo5nmP3\r\nPIV44YeWWi8/P4lNc9Kp6BECQ2Mwo1SCskarCprxHKSg8RMAv3Ojxie35YGk\r\nOdmMuYMzAPWTJAaYidqM2eTjRk53w48ipgHC+64akbOX1+yjAPQc/x090uy7\r\nTbSu11CkzLuJzd9ZwsDWQtLByHmF1ayp8XudF1wp7xrtEj9q58JlxzSEVTkL\r\n7OumU4Qrifm2chUOg7mxE+mZiSxiNuNWK6oBkBqHwLvIf09piAlzI3nqPhkr\r\nNb4eeqh9hPPoAgtTGJ0NJM7WjrXKJcRIrtp6rwmR/HscFF2mBLxHZzy/+/FA\r\nRy6SXzMBFEY0S8YlGZ+7ih0LJ2oQy9I6HTmJDY216cBqqSBj19ya8n4rYoxs\r\n9Mvs5Hywt2Rv5akfaRd/zMpLN81Hgldo1PjtbGeWUFi5UNabAZfoV1FyAZbc\r\ngTDM71BAfZtM5ze6BLwEGI+PADDyg1cNmiA=\r\n=+Mff\r\n-----END PGP SIGNATURE-----\r\n","size":2672,"noattachment":false,"key":"/@inquirer/rawlist/-/@inquirer/rawlist-0.0.7-alpha.0.tgz"},"main":"dist/index.js","type":"module","gitHead":"0e054fd0b58bf56e94088136dfd36b74246a5187","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.3.0/node@v18.4.0+x64 (darwin)","description":"Inquirer rawlist prompt","directories":{},"_nodeVersion":"18.4.0","dependencies":{"chalk":"^5.0.1","@inquirer/core":"^0.0.24-alpha.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/rawlist_0.0.7-alpha.0_1660915581979_0.5187663594408647","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":1660915582151,"_cnpm_publish_time":1660915582151,"dist-tags":{"latest":"5.4.0"}}