{"name":"@inquirer/rawlist","version":"0.0.5-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.5-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":"43e4937a21b35e326474ed14f38c0c4bab0299de","tarball":"http://registry-npm.ywwl.com/@inquirer/rawlist/download/@inquirer/rawlist-0.0.5-alpha.0.tgz","fileCount":5,"integrity":"sha512-x/acG7ZIuTe0DDnayDjhVGH5N1Zw0jTWep0NvkGPirDEME4OW/mg/oKU0tTv/iabr3+IQdjmGq8SebwBO/IlEw==","signatures":[{"sig":"MEUCIQDGnqrOjjsXDvbN3r1IA0q99EsMWT/u6H52bOs6oNK5kAIgGwkxRwQQL5g6emMvB+ZSvR3k6zqgOLK/uZI8ArR5C60=","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\nwsFzBAEBCAAGBQJizzDpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpGTw/9H2C7M1L5IW3lGt5VJRDmajwh7sfs3O7XW0znc3j1dcARuSrD\r\n/IYaL8r22ajoJV7nWstdfayIXa8UarS6ZfoS53oRo6eMU5cWV2BcF92Fjqp2\r\n44WtlD5s95Jc1+cNjVzxzjcTLdzCz6J/k9Ap3GssFtNxKI/ZvaFjlS0BXxw2\r\nctuDde3gsbVIwB4WDbMRlrAY+W0Y9pdHsE4b23zYbC69SDFFXY01dYvcGWnu\r\nc3aguAm2KDcao8JpO5V+yCNuaZCc6H3wHOtnHDVGEXxx0zet64/WsLizXMiW\r\nflofNGKqvbSLX7Lh2rLkARmhIPkRpf4Yl25Rm3mGxrxeO9wZurFJQ9qSx3iN\r\nr8XKg+ojNx85Oy98W/f8vLIOS0Dw2fWYrdXEPytXMhDuwlzdk0CdSUN/0gql\r\ntEi8aS8HwHj2FY4mOZzlpeN80NnhGl/ERRsxiB6TClDmGkVDklSRESy0SKaH\r\n5i+Uff38DOXjKURe0s4b0FSUjgOB1o/w35dOjeJ/AsqP/jdTaqPM9Mx4/beN\r\nChRYxjNcSkx3mxRlhmmBd+MYNBTNLNAIfBFPFjLtggLaZMEZgoC332g7143g\r\nIjR4s3q3gQo0lOTIChoK6Z+mnuYWOHFDdG/ssXqFtN1KNC+HT+zAqHbFyiOq\r\nM0yg2UJkaXr2iyfTnAAQAf2kskV6VxcvWZk=\r\n=t8yi\r\n-----END PGP SIGNATURE-----\r\n","size":2672,"noattachment":false,"key":"/@inquirer/rawlist/-/@inquirer/rawlist-0.0.5-alpha.0.tgz"},"main":"dist/index.js","type":"module","gitHead":"1d5e7e3d15c86851f2e5df2bb9f55084ba231c54","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.1.8/node@v18.4.0+x64 (darwin)","description":"Inquirer rawlist prompt","directories":{},"_nodeVersion":"18.4.0","dependencies":{"chalk":"^5.0.1","@inquirer/core":"^0.0.22-alpha.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/rawlist_0.0.5-alpha.0_1657745641353_0.018631258497719738","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":1657745641536,"_cnpm_publish_time":1657745641536,"dist-tags":{"latest":"5.4.0"}}