{"name":"@inquirer/confirm","version":"0.0.18-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.18-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":"0f577869c0bbe21d24dc27637155f52caab20b1a","tarball":"http://registry-npm.ywwl.com/@inquirer/confirm/download/@inquirer/confirm-0.0.18-alpha.0.tgz","fileCount":5,"integrity":"sha512-Agtz3s6vWUzvV4fKgEmiRmjwQ00e17OKXgd5Ws6yLC3nKaHEYZeCG43oALSSbTD5NFvSFdcYrQYxYC+yfNErFw==","signatures":[{"sig":"MEUCIQC64XdEfRBqro3k4rvYmnRRCMbZCLYkLFN7iCtx1Qxp7AIgXeTQyy8wasIlaSdVFds5vxatgC4MtPP9QOfxcjVdvd0=","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\nwsFzBAEBCAAGBQJiaEfoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrZ4A//QjhFvj32PcA8y9bRBQ5Q29ZQ/ODuhKMlKP1n1DbxawArdYEX\r\nxbAOsvYo0UBhRM9/qZB6xFxGTiL7zterWeqAt3tq0kr60dOfbiHfUNQhSJiW\r\nehaxRSCq4op19oOVSEmX4pZcHqvApRZxsRGh+2fqhWN8h9BvhQBd83o7mi1Q\r\nyBvqGjPPhCxxBltf0QLAZKA0PVIqo/eCuYRIaalJlAtXaB0Lod64pH7xDVdg\r\naCRB45qp3fSMvZm/ORmO0IOc9FQ0INyjNMKm7yMobwdZaqmswOUX9y6hR8eA\r\nzUgfVuZRRwzR8SNFCo7vqP50Lj5dHjn7OOKDP1pAV3cUqk7l2iymLgQPbOoo\r\nw+5iuM4rVLOpuHcRsTbYnVxziGN7OShQw/Rzjj2S51A2GJbfO2TzG4Ex+AsD\r\n4jFOFP5fOfmdA48PZO0rUWGukPxV/rPqPipX0FnZgNiia1N0/fUcKZYZpBNv\r\nE/ysVxALRNao9yhjZlLv5UxLlx9sCHKbw+zlIoL6BaaYagYEeYoHvwH2zcj+\r\n6FmcXIv6aQVHcnyk+FA6A4mWuW/arZ2jJMQz9qB+Hbtsv69ioChbCWOTRShY\r\npUEJWpN2otaU71+bnNBq44U6Wry//9onN7VjcUEV0Yjf549pGh22Ed/E5Gaq\r\nrOhBGyEAyTy+SsKh9oDqIp/HNKPtMphmGrQ=\r\n=Eacl\r\n-----END PGP SIGNATURE-----\r\n","size":2107,"noattachment":false,"key":"/@inquirer/confirm/-/@inquirer/confirm-0.0.18-alpha.0.tgz"},"main":"index.js","gitHead":"9baee326b04b4e8565e815b1fa577c36e0b93727","_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.19-alpha.0","@inquirer/input":"^0.0.19-alpha.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/confirm_0.0.18-alpha.0_1651001320568_0.07988503627911281","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":1651001320733,"_cnpm_publish_time":1651001320733,"dist-tags":{"latest":"6.4.0"}}