{"name":"@inquirer/confirm","version":"0.0.14-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.14-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":"4a759c6def5ecd73bc239e090ee6197f74f52dbd","tarball":"http://registry-npm.ywwl.com/@inquirer/confirm/download/@inquirer/confirm-0.0.14-alpha.0.tgz","fileCount":5,"integrity":"sha512-MTMCp/jUHJUB0IVkV5utQ1NUE3tqH2W0OtYXByW+ykoRXLiaYrv8vYtx6j0/rOiDHhNjNqTEIWomQx16w1x0uQ==","signatures":[{"sig":"MEUCIBPpl2dca8Ts4TbNfNXr61DG8Be7bEby5V9h82NJFQzSAiEArSWG+ZERZ7L9qSBhTs7rGKrIemG5htBZapEdQblpdTg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3746,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgqBNqCRA9TVsSAnZWagAAJ24P/RiL+dbd0VKxh2LSyr0q\nYnrEuJ7aqEHtihIprxcbblXX0DK3f7yTSPwMgbepn0oMxI0nR/6zlgkMpJ7b\nZ6QMhUhQ4ZsaD0zI3fW9Vx6RAf8PJtJRB6uyNhKjC08XxkiqTNWuetwSH31H\nqRngOYD5ruM5kby5HguqrfM0PaMzWSNFfTSkDvWmm3raxjEWMnsS8JMPPYV3\nUUhNW67v1k0mJv2ns5HxQgynw5BKd7426Y/cGV6crjDGCxiK3Y8nRWpvP4a2\nw8n3vroXkgBR1Qw75QmblJnvAF8vYoZTvKl5bqfeJCwPiKuP+1QBTpy+C9BM\n0waHVgXucPNH/nHKWUyU6G/2Hl36bLgji2Hu+4dqgocMizAIEcXjJjVIo4W8\n6uh/NPNfuayIYhaGxOzOSVaP+AmP5wSPhhEqnq8vOwkbc/6J+HtENiShsmOW\nYSfvJcwfDrgUwcy0zU8nId0KhNEkebYbo5SgDs3MqhBHgF9fZgAp5CAfQHEB\nMXO8If6+7KEldwJVD5heQMsn7p90sJ203t2zCUtioComevZcWH8VgKNXcO+s\nVAJoJzwagB/KLUlygTOxu5hgCLgG6BbIsV595G15kv0nVcFR4soa1/wpqdqr\nmNmOtIdx/Si+O8J2FHcZAqIsR1r2cXQO9E0Xf0YVtvakgx5XNvseGJgH/mjC\nLdjS\r\n=ySGv\r\n-----END PGP SIGNATURE-----\r\n","size":2028,"noattachment":false,"key":"/@inquirer/confirm/-/@inquirer/confirm-0.0.14-alpha.0.tgz"},"main":"index.js","gitHead":"0053e3f5694a4f75c4901512ab87e8906d1d7896","_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@v12.18.1+x64 (darwin)","description":"Inquirer confirm prompt","directories":{},"_nodeVersion":"12.18.1","dependencies":{"chalk":"^4.1.1","@inquirer/core":"^0.0.15-alpha.0","@inquirer/input":"^0.0.15-alpha.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/confirm_0.0.14-alpha.0_1621627753904_0.026903978830401076","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":1621627754022,"_cnpm_publish_time":1621627754022,"dist-tags":{"latest":"6.4.0"}}