{"name":"@inquirer/confirm","version":"0.0.20-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.20-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":"35013ffd0ae8533a85605f00eadd0030848d9956","tarball":"http://registry-npm.ywwl.com/@inquirer/confirm/download/@inquirer/confirm-0.0.20-alpha.0.tgz","fileCount":8,"integrity":"sha512-cVNbV72VTNS8473R0jS7XiLz4yhtVzMZWzow2z8ysOtSBh+9EUmpAvd0pSykDDyjPEmZBhH9P7SeWhlI6jBHfA==","signatures":[{"sig":"MEUCIQCfdcXiPtSa9axgFgbSRqpLWwnw/wuuW+B13MZtx2OpCgIgCQ7tgHfIVqMepiHA4PfNFi2lO+5AEm8V1UYIwwv2aOc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5350,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJirhB3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrGiw/9HLG1YzqnoOSYdl1VlvwXA5J+Mrgyll881ozRwICWg9pnAWSg\r\nEpS3NBsDUp0Ix60sSWn/YQXWfiIL0KXsMExkUYjrOjj4HFP0MLbuBMHyUG8e\r\nZZKehkswjmHpCnHQPansJWBwBIocOgWBLIfmYp2xHJ0j7iz1EDdAxLmMkdrU\r\noq4pNtr6pJfy7PgTZ+hSrOcoDONe5JMj9SV9p+4QyTXkoaEC917hT3ZwEg95\r\nQvgbHorL+XaIldWsmTYjdPgVL1eFgvsDIqokf9TAikvU0JSZtwamyc9fOC+d\r\nJjcsIIHAlejQf6jiQFTYBZHreJBnJPQTlPSY5+NcbAU/naWFdm7WtkMrcv5/\r\nav1nJsjS9MMQDWpSkshWzazH569ZVQ3IGd6fnhdIBf8zatFeNTGTHZK84Xb9\r\nMgmaaOXMZyWMkVmReLidaIKR17fWS6p4HIROn+KcKQCxRJJJ06RZXXOL/LYb\r\n0fz81JRPbOSFWUTxnSxwXDOWDxKsxMuAnSmtprNaQpaP7hVRObVUtxioJ03S\r\nPOxH+qXxmM5r186wyC7Z/3dd/zie7UfRZ4X4Idw4YpmllWqOd2Lzb7dE3ft1\r\nTJtsrkBCTDTG7imPnVgMq+/le0qOc21kkMjNHqKmQ7dJ32XBvxhWNzdGluJK\r\nUkhGGTxkDI0XUrrBoZz/cHaOacqiBKh5KCU=\r\n=izrP\r\n-----END PGP SIGNATURE-----\r\n","size":2444,"noattachment":false,"key":"/@inquirer/confirm/-/@inquirer/confirm-0.0.20-alpha.0.tgz"},"main":"dist/index.js","type":"module","gitHead":"cd0d1465327c0e98a89c937a80b7c473b6d00f74","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.1.4/node@v18.2.0+x64 (darwin)","description":"Inquirer confirm prompt","directories":{},"_nodeVersion":"18.2.0","dependencies":{"chalk":"^5.0.1","@inquirer/core":"^0.0.21-alpha.0","@inquirer/input":"^0.0.21-alpha.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/confirm_0.0.20-alpha.0_1655574647332_0.8854997715542396","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":1655574647526,"_cnpm_publish_time":1655574647526,"dist-tags":{"latest":"6.4.0"}}