{"name":"@inquirer/rawlist","version":"0.0.10-alpha.0","keywords":["answer","answers","ask","base","cli","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@0.0.10-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":"fdc368cbda86492d6acd4f6919ac8ec85e80d31d","tarball":"http://registry-npm.ywwl.com/@inquirer/rawlist/download/@inquirer/rawlist-0.0.10-alpha.0.tgz","fileCount":5,"integrity":"sha512-pex8mYqCe0W4dAI+vFZMD8WY70bjRJuMKMxnX8NpFJ6zC03/pDCLIoC2kBVtY/gm34vZz1gAgF/Y8ihMepPjtg==","signatures":[{"sig":"MEYCIQCWa1lyk/zjyBYZtXxsddNhWR1WIOaa/If4ifmP8/XAigIhAIjhdXDqMyvtVXeU1VP+xDP0vwI31n9eOEdAzI/QualT","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5976,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjJ2MxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqyJg//Us2uxsScCV4o3YTXtXEiJ6td4+jrL8Fa2L8DCneg8LHPWLPr\r\noRAUyD8lpRCNSSYLYGRwec4iP/Svwt0KRaOKkuUlsGfDQTHswaJcsuQ6nXKf\r\n468FoFzH9tY9MhvgbpM8pbUpXcgyWP/A0Ek8YUK9EEDo02ZSj+it2duTBBaW\r\nREYp5CL7CLpeJYzhcybnq5dTDQtxfOGs+S4EMaImPcUp21B3wJXz8eGIMjDy\r\n+GBzVZO6WphyoG9vLII2ldQComGrOOdJGUwGAbaUKdH4ltRUpUaP7xPrTeLI\r\nSqC8sTCpFZXBlo4d0M7A5nIW/RlkoAvlMvPxCGjtGISqEUjTQOJQtWOGKXmJ\r\n6g7cFm2OMUuhwEolc6s2B9QcUjxGIoEn26eTDPgPaj9TlCQHGPM3RMPGhi2U\r\nxBUGOG7RCBoZUpZm6PvrH36mFwiLCNPqKLmhzQraA/Sifg3nRFAZ/KqN5sxP\r\nlry0wVdeNvvQBVpXQsKSCQqkbBF9WtEouAgLx4a4lrhC9sQErF3tppxH2Qsq\r\nX6D8DW/o/zs5HFQh1bwBIDsUVEbGTJJ6RNKSR9ynv/P/mJvQlUaFnvFE9Rrw\r\nhhJwYXjXODBcUI1HbNPKsx70Tex1w4mSrS5ruoJApsMRnJUiZ1DJyG+DUKTu\r\n4u9krrOal8FaoI0gC1sw2wKPsvuu4mAvLzo=\r\n=uR4Q\r\n-----END PGP SIGNATURE-----\r\n","size":2753,"noattachment":false,"key":"/@inquirer/rawlist/-/@inquirer/rawlist-0.0.10-alpha.0.tgz"},"main":"dist/index.js","type":"module","gitHead":"0e3ef8e31fc34b5fa5308be95af77ba9f5ede8fa","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.5.1/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.10-alpha.0_1663525681103_0.4124856572654334","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":1663525681280,"_cnpm_publish_time":1663525681280,"dist-tags":{"latest":"5.4.0"}}