{"name":"@inquirer/confirm","version":"0.0.17-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.17-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#readme","bugs":{"url":"https://github.com/SBoudrias/Inquirer.js/issues"},"dist":{"shasum":"69cce6b925a1008a7cb0f4cb5edf659032a96111","tarball":"http://registry-npm.ywwl.com/@inquirer/confirm/download/@inquirer/confirm-0.0.17-alpha.0.tgz","fileCount":5,"integrity":"sha512-cjhASm4XbiJh9A+yjI/qDQpNndd7+sSO6/dJPG2N+EIRpz3QunB+hLzqgdw0gLedG0x2/p40QTdeltyXBM1Vbw==","signatures":[{"sig":"MEYCIQCAIDNJBwoDXN2drn21L+odx2VSRJTMwncl5G1Io1v1lQIhAJ9FwYOq+uOm1iI5Fi2GghgA2Gf0xy48q6Nn/1kP15DD","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3746,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiKAGGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrbGBAApJfnwccxLmOJbXGqdcOOj06WRkeVqfkgvrgf3n4Fu4Qz8TA6\r\nzkkhDpWuR0xMnIct6q5VAdu9KMrw9v7LNLWr4Lh2hFrZkE3Z4CY3ZKS9oDoc\r\noPCAUqG8cYD0hfFM4NDC8b5kOz7R9SqbBQBkMdaB8vf4Z59piuOGTxG4YDQ9\r\nRUte//086Rg76/17fn1FgFl2MpqoUjtzVCZMS7GBJYh8lC/XPzute8H2VXWX\r\nKLtUzVX/rfpBzlo8aSNBVfiTey5Lnhekb8MKPUPb0U8/ZrcHa8fRRhVvZauE\r\nuBzi7/vyRR92ZfA/X/9tq+ieYnXPDViw2JG4VWehXMybmhZYL+3BffGN7624\r\nCBL3Yj2OsaWUoQk3JFCI2n560EtnU3BIJpSLbnkuNnw23R3mPvGakRYM3QOk\r\na67RXjmoQl9Wifirn9JOjgLcWayu5DF7AzJTfjeOXcZan4ajKPcBLn9iCjZE\r\n8zzanAaayd0JpFRHTS+0uLSAyIWM0s1HxM2a+YeG1louZrLyCFzfJOTvbX7C\r\np8GKNzkAY46SYZqhnZ+638GjFrr6Juu1b34miUljoIcWHdFl+lMlnRUxKHqG\r\nJRjn3XWmbTv4ZPizSh0pi0s2e5fzi/5fzRFlKG01ekOIHyil0Xz4jfxURfa5\r\nDNK4NNB2aQf/xH/rUgJG/4YrFB2qrC2zWMY=\r\n=VzFp\r\n-----END PGP SIGNATURE-----\r\n","size":2025,"noattachment":false,"key":"/@inquirer/confirm/-/@inquirer/confirm-0.0.17-alpha.0.tgz"},"main":"index.js","gitHead":"e71313db1a6e26f501b58d75a9d3acf53dab5da7","_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.13.1+x64 (darwin)","description":"Inquirer confirm prompt","directories":{},"_nodeVersion":"16.13.1","dependencies":{"chalk":"^4.1.1","@inquirer/core":"^0.0.18-alpha.0","@inquirer/input":"^0.0.18-alpha.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/confirm_0.0.17-alpha.0_1646788997852_0.5593360609523732","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":1646788998003,"_cnpm_publish_time":1646788998003,"dist-tags":{"latest":"6.4.0"}}