{"name":"@inquirer/confirm","version":"0.0.19-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.19-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":"4da1d4ad55ffeca9bf9f70f7f9303c272c6902e6","tarball":"http://registry-npm.ywwl.com/@inquirer/confirm/download/@inquirer/confirm-0.0.19-alpha.0.tgz","fileCount":5,"integrity":"sha512-R2YWOPaL4FdD2CJkR2uDQMjWfP3OwwcSFfWZWi5SHjDSjHSkgVhti5QVk+i6VFlSMVO2OKS17KQuLxIBw+IzPA==","signatures":[{"sig":"MEUCIGoD5C4QjIeeAWw2rcSHeYFF6NhmYMa+1F0JtFpJOig2AiEA9oQPpBG+isE2LAz1HF4ot9tIn+IcJZYyjy6MycWoZBk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3916,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJialmXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo66Q/+ILLIlXHBu2qrIXBHLg6E3/l7uUE0UeH9hWZxul0NjcAyhfsC\r\nY5imRT3FFH/6uvo31zmw4SI/WUME+kHuh8yYF5le2URhotKHIZGBi97SB2Yp\r\nA0wwt/Dd0rlEoCEz6o6wC/fDSB0aX20a2ryzP9LJECcAbm0EjsYZl93t0nMx\r\nIrLy7OmDVUPz4XYNyb4OFgos8dJQWYc7EqA2nShKHP+wpxf8tU0bPaTefS/Z\r\nEkBYAEPvNS/ihLuaadSPIkc3Fi1qVQO3q4v60DIcyRamiI50xyMnYEr35NFZ\r\nyXe+c++8fq/mFQIlTTkDaRAhHuY3qraBPf0LxaIBtEgSbyrTAGM7uCIe5pTh\r\nL33xIoVsiK/ZZLe6p2fJ+23lLDsm71qrjZ0sBaZWh0cQVwOHvUcHQoO6nFQX\r\nZ1+jjIjw3tWcUSgthYO7KB6OWVT89pv42oSHo+/SzzG2vYDSxzfzUNIZQAaC\r\nQR2k6svasojZx0ghclbkbuNZeufdblv+qizWNBnz/HJAiPGLNYsskk3hsrux\r\n6qUPB9jBGMH4A0zz4THXPo2Et9krrHPmk/ba2T4/ntjEat530/gZnnPyhQmu\r\ngBz/hB+RL0iekwvTugTaIEGDeaOVHB31vNK0lRuOSXMH25vMaVOqO+MnJe8C\r\ndNTBTMAfxfwltdJlCujbEl3eoNYQVrZJ84o=\r\n=2GrN\r\n-----END PGP SIGNATURE-----\r\n","size":2106,"noattachment":false,"key":"/@inquirer/confirm/-/@inquirer/confirm-0.0.19-alpha.0.tgz"},"main":"index.js","gitHead":"83b807522ca6e10ab90a6921eac9d9655e2dac38","_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.14.2+x64 (darwin)","description":"Inquirer confirm prompt","directories":{},"_nodeVersion":"16.14.2","dependencies":{"chalk":"^4.1.1","@inquirer/core":"^0.0.20-alpha.0","@inquirer/input":"^0.0.20-alpha.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/confirm_0.0.19-alpha.0_1651136919580_0.8307828800047163","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":1651136919704,"_cnpm_publish_time":1651136919704,"dist-tags":{"latest":"6.4.0"}}