{"name":"@inquirer/confirm","version":"0.0.15-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.15-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":"78bb7f713021750b1d79d7a078cbce6d8362836f","tarball":"http://registry-npm.ywwl.com/@inquirer/confirm/download/@inquirer/confirm-0.0.15-alpha.0.tgz","fileCount":5,"integrity":"sha512-IfUS3DCwyte4x4bjnJdMp17IuPvLzv+MPk5tme49Bofak9OZoTJzWIeyozaoEkfHgiQXRuYTmQ8csx5fMPOQGA==","signatures":[{"sig":"MEYCIQCTlN//FfSMyOD3HkfvzBxiFfPsv0UUVvuYpSTXlGa/kAIhAO6q6H5SsbNoaAxL36lHx9JVzhe/Ai8uNRMuUmcNOkeU","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\nwsFcBAEBCAAQBQJg7wISCRA9TVsSAnZWagAAQm8P/j0tBmYyNtadKlbmmL9i\ngMw8Rb802CKxa98GZ04IuPLapttULqCFpvd8ojqPD15oyzt+OqJvHERibKxL\nsm8zZxZNnxt3LwkZkHt7q2lhPq8xKi4fb4o7IosRM4jsshv4hpLaMsWVT9eb\nSe4ZgWuFRPzROrs6/m8cTDI6Or24fBXeOH8P3h6U1e/7fis4yxg7HuCCPpRp\nBtg5fKY8gndWLbf0LmP8XZQPG/f9q/jjUXszSc7tWamZ+eG1QRpeeSUFt0kQ\nyg3KB/m2tWqFhO2YN6yf6exc5/qMaqFEJ1UD0J/ublnHLkFtHm//hUpltiUk\nwqcq9IvXmeDkEXf/K0gt6UaKU3cghdSyoTjJyD55pkraolM7SfxxH02hjreT\nUcFDO+Ptkq1ofrFNJOKBCOHJW8cGJ0iOc3rmpUxbI7G7D0RuKwDcrcBia+BG\n1PEflcu2234+e2w33+LQ3rqT2r/gUle7djyC1YatwTpytC3wep8R3yyypUix\nHqjO2Bc2iTO0jsFWn5zkOEFqn8a86ftrZq5QlfT/TIM3LrN+5oDvks5DGXZV\nukraIwIWYUlphG2E8MbvTH/dBi3Ys+9rVjaowGVAhzp3nXzOIoxGFNO3sMvh\nkMtXNcUqbLtrfyZN/eRSwEOSghfsex5BytEjL0mEDYGabY/c6hwFao5VDcy9\nA8EY\r\n=bB/a\r\n-----END PGP SIGNATURE-----\r\n","size":2023,"noattachment":false,"key":"/@inquirer/confirm/-/@inquirer/confirm-0.0.15-alpha.0.tgz"},"main":"index.js","gitHead":"9bee59b98465656619e4ee563ddbc466dcf2b4f1","_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@v14.17.1+x64 (darwin)","description":"Inquirer confirm prompt","directories":{},"_nodeVersion":"14.17.1","dependencies":{"chalk":"^4.1.1","@inquirer/core":"^0.0.16-alpha.0","@inquirer/input":"^0.0.16-alpha.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/confirm_0.0.15-alpha.0_1626276370442_0.3503349237478226","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":1626276370548,"_cnpm_publish_time":1626276370548,"dist-tags":{"latest":"6.4.0"}}