{"name":"@inquirer/confirm","version":"0.0.22-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.22-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":"6b127568a6516f5fae18b7b6e11c3fede79fbae3","tarball":"http://registry-npm.ywwl.com/@inquirer/confirm/download/@inquirer/confirm-0.0.22-alpha.0.tgz","fileCount":5,"integrity":"sha512-BlxmLY/vGhBqzR/eWR6QiKYjlW7kkfnw6xrUHZ5nYvvAyp6naagSE9rhkl/ZPspmNDaNq51/R2FV6GwRS2pCJQ==","signatures":[{"sig":"MEQCIGuo+8PK4tmYOzm/ipNlXY5nyUPAje/LYStCLtlaW2zdAiBcbP8hImO8jLGZN0Y6++xlj8fEVAE43k0SgASHFtoe2Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3980,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi67L4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpZChAAi2ChmqCWK2tgt6xzk7CSJ1zz/RtAUIkcJDKxwKUhLlPHjMHS\r\nN+It619f/xm2z2e7k34KG+F+81zIsyqGU7MB2oGOtvlZ7hCeHKahKcWY7xo7\r\nhHBfXOhs82L3bBrSreawRnzkGfMniBePACCH5ahSz8HGr4pS9EEqaJGX3Dvr\r\n32HojQr4Hf7SiCE29Hxi5dOPKf7EAo7/LdkV46LJ3HdIHBPi4PwzqbkLm0Rw\r\nWw3hz+WcFKu3LcF/DF38wGWCYxZBIZ1xi+BdvYZogVpsytziexZfd3PFdhgY\r\n03pnVOUzhPH3G+EJZyIRoIELzEi934ehnxgayN1XSWj69FjunA2Gj8Vigu3a\r\nvz6Qef5J2EKwLRZzs1r7lWgqU1MwbVqiDcdp0qq+7oFAhm3jO1oZuneWwdqV\r\nbX/vt7sKd2CRWFgHb716me26SK7Pmo/S79C5Zy1S9SkpuCED0hLFu7mlu5bT\r\n2HBrbHzBpNZ//CmKB4clB5fWtJSC8jZsihj8CuhWsYv7rimis4r6cqUIxVVj\r\nTjf9rLJjHanDJqOSyNpQICkeA7flJHvS3+VFvzAewbjMqmpBZS5nrZaBa1MF\r\n/fPFkP8RIWoC+3pQsgrNl5/Ul6/UDVvXcZsArMuC+UFaW3My5MLOSvCqi+xx\r\nxlJJmLpAy2pHdJJOQCaYinlJW3uXTG19jVc=\r\n=bLzn\r\n-----END PGP SIGNATURE-----\r\n","size":2129,"noattachment":false,"key":"/@inquirer/confirm/-/@inquirer/confirm-0.0.22-alpha.0.tgz"},"main":"dist/index.js","type":"module","gitHead":"a95b68efa6f407cefff63300e7e50da34c6b6693","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.3.0/node@v18.4.0+x64 (darwin)","description":"Inquirer confirm prompt","directories":{},"_nodeVersion":"18.4.0","dependencies":{"chalk":"^5.0.1","@inquirer/core":"^0.0.23-alpha.0","@inquirer/input":"^0.0.23-alpha.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/confirm_0.0.22-alpha.0_1659613944016_0.048775070836738266","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":1659613944155,"_cnpm_publish_time":1659613944155,"dist-tags":{"latest":"6.4.0"}}