{"name":"@inquirer/rawlist","version":"0.0.3-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.3-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":"a9ab5309a5febb18e372a803745158591cd5d714","tarball":"http://registry-npm.ywwl.com/@inquirer/rawlist/download/@inquirer/rawlist-0.0.3-alpha.0.tgz","fileCount":5,"integrity":"sha512-ZLx9VRzUxM+Z/qaFXaCxNFb16ud9lpmz+YKYz7YisY1USYvYyNdHwFyxD8T802ULhPmHZTP68jLxeH779EFqtQ==","signatures":[{"sig":"MEUCIFjJm9SgrIPSkAURLmGJ2l8/cGgD10TK/fQheA+bJUoSAiEAkoZDOamFLJJHP0XbQmNgOONfEO9s0bNoIWaTbAuemMo=","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\nwsFzBAEBCAAGBQJialmWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpJ6A//XcZdo7nFSJ09DK0C6EKOvoV5vB5mGmMWaQOUInVYiZqdtkjp\r\n2ipBDeUVm8rT2g6fEzuCxQJjpAu+qWUpB9PMgudHhdqcS/KP82GJJiUx4pwE\r\nRdnX+mQWBak7UixiZ4VDFRTIdUso2jqU2mp8KBJNnRAzdocM/TBwls0rovrB\r\ns1AWNt33HBEfG2La7wv5JB8qgZ7cWmPQNguOf5dl/EarS/6JcNZ7HgE3LTFW\r\nNmg1uwwNFCR1HWfZEMF5X8+8usl7TsJu4IrkqVQhwVIdy5GpGEHlyNBP/u85\r\nJW4F5tf8onwMO/eGzbgMp0IjDg1Jzqi9hQ2ojbE4+0+6Y45zQ3Q8cEI9Xlpd\r\nClwIsX2IoLEl9UWFglMnPWDfFEDAriQA7ZjrXT1sZtP4aRpq6qvOYdQpkLAv\r\nSKpPZp6JzUW6/N8hH1GaxbPkw9v3NSseY3K9DoFlsQg9dXjGRLkq3U92qmx9\r\nKBAPnPZaJZjDCV1JAI5e2jC3FfWu90hgOnqcPlVmtgDJp5bqgENU6Qc0f6P/\r\nO1q9qo2ej98R/Al9HE0LCQNxzDKJe4EVmTSGaVuz0hd4RZBW61iIpKeQ0M8S\r\nYZAWu1iFGwWUmsW8F3MTHpnBzd9gZ5Wq7abuHfWRVHDnhLRETMOtpoAkLDcK\r\nLaGe9L5u+cVcNOY54W2jycaNAhJMOTaWKy4=\r\n=GAHc\r\n-----END PGP SIGNATURE-----\r\n","size":2703,"noattachment":false,"key":"/@inquirer/rawlist/-/@inquirer/rawlist-0.0.3-alpha.0.tgz"},"main":"index.js","gitHead":"83b807522ca6e10ab90a6921eac9d9655e2dac38","_npmUser":{"name":"sboudrias","email":"admin@simonboudrias.com"},"repository":{"url":"git+https://github.com/SBoudrias/Inquirer.js.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.14.2+x64 (darwin)","description":"Inquirer rawlist prompt","directories":{},"_nodeVersion":"16.14.2","dependencies":{"chalk":"^4.1.1","@inquirer/core":"^0.0.20-alpha.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/rawlist_0.0.3-alpha.0_1651136917896_0.251218420064212","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":1651136918090,"_cnpm_publish_time":1651136918090,"dist-tags":{"latest":"5.4.0"}}