{"name":"@inquirer/select","version":"0.0.28-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"},"license":"MIT","_id":"@inquirer/select@0.0.28-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/select/README.md","bugs":{"url":"https://github.com/SBoudrias/Inquirer.js/issues"},"dist":{"shasum":"33a5afc8e3b2f3dae8542bdb16ce9c99ef28155b","tarball":"http://registry-npm.ywwl.com/@inquirer/select/download/@inquirer/select-0.0.28-alpha.0.tgz","fileCount":5,"integrity":"sha512-Q6JBPPi7mE+Kp0qE1/qc9LGXncRaWipjhYgtWlQxDdTwHJN5ZhQ1cVK/GaRjbTGQm3WdYNAnVgTMXh8PPIbUOA==","signatures":[{"sig":"MEUCIBhdLQlPVH5WPk/+E/3qd7kci9qWFilXYZW3J456aqOQAiEAoySMGxkNutaYMwxX8Y+fb04vrSFxAqSmVXDiJj0s01Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7105,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjP0CPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr7qA/+K2zLNeLx4ZVQVi9uPshcv3aw0w/eHzKm1Q8VtC9j1YHQeYFY\r\nHcI5N+hBjQwsL0aMkqx9VVYcfJbHeOBL45jXZmFKMrovnObKbn38lKOHUVtI\r\nttJd81jegc7LUTnUFxwG5G3fT+W6MahGhz4MzMqghJR8/UXO99mpG3dZevTm\r\ntIDc02DqhXwBQoDC3kbXAwi9r7wJ+HcwPSvdzLjUV232nQCMEP51KuY9Rpca\r\n0Ol88u2q3iVOaUd6rmkDsqvQuhk4sR6E24IKq7Hn8tJevlmsSixIk+jRxgSr\r\n5LLETByXTPz9LpX2YljLGQ2XFzBFeXULVJsQW8uJDTnOyz9skrUyYqdIYLBo\r\nMGB/TW7whnrpm9RqQPf2fePEBWHqtgjbs5daZiInwH1vC/jDC1GCVnZC4YlF\r\neJWqQKURmxP63jHcFWVFQC2N9haebkFNPQiIvuPdh8zY3OuGEvDROSSSxf34\r\n05tQX/UKHp6F02+boQpPwpDheOX2uczD7xEM+URe9c4nk0/OYSrEXrLsUIYJ\r\nLopY7t7YjQHC5WBt0h02ig3RbjUhfZqElPvb5BkVlZYP/dtMSO48eYlTIszb\r\nYWuZMjkZ9S8oETK9AALNqS5GWBj33+WRWFonlnPVramK2c7Lzzxw0ULV82pu\r\nIHdX3JY+1bjiUGpq7lmarsuASphf4ZoiKdY=\r\n=joTu\r\n-----END PGP SIGNATURE-----\r\n","size":3063,"noattachment":false,"key":"/@inquirer/select/-/@inquirer/select-0.0.28-alpha.0.tgz"},"main":"dist/index.js","type":"module","gitHead":"c3b92d07e2f5d72976cf233f6ab13f00be9b1785","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.6.1/node@v16.17.1+arm64 (darwin)","description":"Inquirer select/list prompt","directories":{},"_nodeVersion":"16.17.1","dependencies":{"chalk":"^5.0.1","figures":"^5.0.0","ansi-escapes":"^5.0.0","@inquirer/core":"^0.0.26-alpha.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/select_0.0.28-alpha.0_1665089679642_0.7016540511081955","host":"s3://npm-registry-packages"},"readme":"# `@inquirer/select`\n\nSimple interactive command line prompt to display a list of choices (single select.)\n\n![select prompt](https://cdn.rawgit.com/SBoudrias/Inquirer.js/28ae8337ba51d93e359ef4f7ee24e79b69898962/assets/screenshots/list.svg)\n\n# Installation\n\n```sh\nnpm install @inquirer/select\n\nyarn add @inquirer/select\n```\n\n# Usage\n\n```js\nimport select, { Separator } from '@inquirer/select';\n\nconst answer = await select({\n  message: 'Select a package manager',\n  choices: [\n    {\n      name: 'npm',\n      value: 'npm',\n      description: 'npm is the most popular package manager',\n    },\n    {\n      name: 'yarn',\n      value: 'yarn',\n      description: 'yarn is an awesome package manager',\n    },\n    new Separator(),\n    {\n      name: 'jspm',\n      value: 'jspm',\n      disabled: true,\n    },\n    {\n      name: 'pnpm',\n      value: 'pnpm',\n      disabled: '(pnpm is not available)',\n    },\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, description?: string, disabled?: boolean \\| string } \\| Separator>` | yes      | List of the available choices. The `value` will be returned as the answer, and used as display if no `name` is defined. Choices who're `disabled` will be displayed, but not selectable. The `description` will be displayed under the prompt when the cursor land over the choice. |\n| default  | `string`                                                                                                   | no       | Defines in front of which item the cursor will initially appear. When omitted, the cursor will appear on the first selectable item.                                                                                                                                                 |\n| pageSize | `number`                                                                                                   | no       | By default, lists of choice longer than 7 will be paginated. Use this option to control how many choices will appear on the screen at once.                                                                                                                                         |\n| loop     | `boolean`                                                                                                  | no       | Defaults to `true`. When set to `false`, the cursor will be constrained to the top and bottom of the choice list without looping.                                                                                                                                                   |\n| theme    | [See Theming](#Theming)                                                                                    | no       | Customize look of the prompt.                                                                                                                                                                                                                                                       |\n\nThe `Separator` object can be used to render non-selectable lines in the choice list. By default it'll render a line, but you can provide the text as argument (`new Separator('-- Dependencies --')`). This option is often used to add labels to groups within long list of options.\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    help: (text: string) => string;\n    highlight: (text: string) => string;\n    disabled: (text: string) => string;\n  };\n  icon: {\n    cursor: string;\n  };\n  helpMode: 'always' | 'never' | 'auto';\n};\n```\n\n### `theme.helpMode`\n\n- `auto` (default): Hide the help tips after an interaction occurs.\n- `always`: The help tips will always show and never hide.\n- `never`: The help tips will never show.\n\n# License\n\nCopyright (c) 2023 Simon Boudrias (twitter: [@vaxilart](https://twitter.com/Vaxilart))<br/>\nLicensed under the MIT license.\n","publish_time":1665089679823,"_cnpm_publish_time":1665089679823,"dist-tags":{"latest":"5.3.0"}}