{"name":"@inquirer/confirm","version":"0.0.25-alpha.0","keywords":["cli","command","line","form","input","prompt","terminal"],"author":{"name":"Simon Boudrias","email":"admin@simonboudrias.com"},"license":"MIT","_id":"@inquirer/confirm@0.0.25-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/confirm/README.md","bugs":{"url":"https://github.com/SBoudrias/Inquirer.js/issues"},"dist":{"shasum":"d3cc11da6010133c6558802a9d0dcf5af383d0f9","tarball":"http://registry-npm.ywwl.com/@inquirer/confirm/download/@inquirer/confirm-0.0.25-alpha.0.tgz","fileCount":5,"integrity":"sha512-aGkwV5gfl7f3J1ubUErB6MUrl+CllEWM+ZTrUbnemtNJAi1/hOZPwLQJhjnTfotpzCO6gWdpBv6OCsBOyY+Lhg==","signatures":[{"sig":"MEUCIA+cfguBVixmlhLt7OhshpeTBcm30Rp/NIy4KXVK1/ftAiEA7LeXy4RQNjB1Ae8UhMecjKN4ASWNN96jo5bSZqtG7yc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3871,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjD6m+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpySg//YyFnc19giQXZjjVsLYqIEk12a2rOlRmAIFyQC0+BKxwdc1C1\r\nboswBRmGoPfO8ABPkS5zS46CL9+XIydx8Hs2RxBlqacpMNy7U8smctWn6TXA\r\nR9sUokJkjRmrywcA1bYWrPAbXumiNI7lwTrm3TER86Wg1j3v8jMb2OJrbUpp\r\nw6qExe2uHiK9Iaq+W2KfF5yEbkHNm7K7oUn1Zn2Lvv812iVspo7D1FgnAWTj\r\nia4VM/j4oHvIYWFQksaXZFrCyy0lWpESJ2VuMDRSb0Ub3EirvfaHGhCtG1c1\r\nZ2MFAaPx+BVNqiLAehraCgPnTK427yE9SbhSXweV/nY524oFphVetTCvzds2\r\nQSBS51UEf4zQm1/dopx1/z9EuXyQ8UmM4NiEsVTqTHkVrGosdFcHE73THNHo\r\nB+34mWfgGljte+gQdS83lDjcfEeF9xnwVrfwLfVPgiNG4OCh8mRvoymxpZgn\r\nlieaPLWEx/6hllqOplVESBqOCHvn+HfmDs2qr15Gfp88uvdioEpJl075/68m\r\nwb6KbvnBtTV0ZwFJvRDYWLQYTM1q7lvbwjOIF+IG+xf6xtEyJlM726EJOlqV\r\nPXjmUgy0ggC7072FztuBM23cTqfjS2IwnMOR9Nih3XUcFt2cYSnCs9Rp5DYd\r\neIJFK4htRDHbBTzHRYsqFQJ2hBLqn/HePEs=\r\n=UmJe\r\n-----END PGP SIGNATURE-----\r\n","size":2084,"noattachment":false,"key":"/@inquirer/confirm/-/@inquirer/confirm-0.0.25-alpha.0.tgz"},"main":"dist/index.js","type":"module","gitHead":"6e0a7e28b5ac9fc526cf787e0b6c53cb44bd7ae3","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.4.3/node@v18.4.0+x64 (darwin)","description":"Inquirer confirm prompt","directories":{},"_nodeVersion":"18.4.0","dependencies":{"chalk":"^5.0.1","@inquirer/core":"^0.0.26-alpha.0","@inquirer/input":"^0.0.26-alpha.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/confirm_0.0.25-alpha.0_1661970878635_0.5424796008332862","host":"s3://npm-registry-packages"},"readme":"# `@inquirer/confirm`\n\nSimple interactive command line prompt to gather boolean input from users.\n\n![Confirm prompt](https://cdn.rawgit.com/SBoudrias/Inquirer.js/28ae8337ba51d93e359ef4f7ee24e79b69898962/assets/screenshots/confirm.svg)\n\n# Installation\n\n```sh\nnpm install @inquirer/confirm\n\nyarn add @inquirer/confirm\n```\n\n# Usage\n\n```js\nimport confirm from '@inquirer/confirm';\n\nconst answer = await confirm({ message: 'Continue?' });\n```\n\n## Options\n\n| Property    | Type                    | Required | Description                                             |\n| ----------- | ----------------------- | -------- | ------------------------------------------------------- |\n| message     | `string`                | yes      | The question to ask                                     |\n| default     | `boolean`               | no       | Default answer (true or false)                          |\n| transformer | `(boolean) => string`   | no       | Transform the prompt printed message to a custom string |\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    defaultAnswer: (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":1661970878844,"_cnpm_publish_time":1661970878844,"dist-tags":{"latest":"6.4.0"}}