{"name":"@inquirer/confirm","version":"0.0.5-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.5-alpha.0","maintainers":[{"name":"danielchatfield","email":"chatfielddaniel@gmail.com"},{"name":"mischah","email":"mail@michael-kuehnel.de"},{"name":"sboudrias","email":"admin@simonboudrias.com"}],"homepage":"https://github.com/SBoudrias/Inquirer.js#readme","bugs":{"url":"https://github.com/SBoudrias/Inquirer.js/issues"},"dist":{"shasum":"fcefb2a3698c68a635b327971a3fc3c4ec9c9da0","tarball":"http://registry-npm.ywwl.com/@inquirer/confirm/download/@inquirer/confirm-0.0.5-alpha.0.tgz","fileCount":4,"integrity":"sha512-r36EHwQFxbcxbfTFzL/Zl7tMeXo9DNm+NjQ8dt0BN0IKjJ/JiB7DaDarvSGXp6ZS/4zGhXqTg1CfDOXRDhJJMQ==","signatures":[{"sig":"MEUCIQDvPLYokgsYOiucnw+/7E763B8Up4Ich1eJop9u2jwMBAIgWSiICbAARp00zln4vx12QSDBGmpWVr2JS9zCfn60k0E=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2811,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdJr8+CRA9TVsSAnZWagAAXjkQAIUwotZXmLIj8rJvCYxv\n8+L25/nHLIx5o19XVJ4ziCUpeNUinqKAM2LrmdNFDNfeKGo4KV0VTegNtbXf\nLG3UYecz9xkrhTWBnrPTRzyps4M+ndt+4aUXRnaHK5A8JgtLHRZBkxC1uIhw\nd/5E5iC4qZJcAHFCqo4sDswZpG5TAHQvE43GbrJDYi8eYbleMntEon6Rg+si\nDZOGYYiRKRDGDnie6CLIt6YXlOmbdteuZwB+pu2ngQyeKvldpGf8rbepuTzn\nfpLBrOngZA/i1rWTPobOVTAInUkiDWFchTBvtqtR0Ws+ilk0AWuWCzkRw4uS\noMyRlAxpViLRi0NUOjPjuDXbBL1c7swEuOPwoNd+Ludz9iH8Ep/lyr7Oujs2\nk7/1/1hNxqbXjB099p//KXR7/6o5orIhfkw6bC0T0cNaCIS43RHT7e5ifMxp\noXlPFKQBahqtBE91F/Pic11f2ZmmMZJ5z9ExY7jXBZjWwA8/gPRvipcA5MaW\nh5jwsYvwyC4xikzZgU2/b2M1D+nSkbYGOfAcWgi/ccw7MNS3vT0vqoKAElw8\nGqdQz7/NiFC1VfnJq/Pc3KnhEAXnBdHpbZeWGeAqOeYHwrKeEUugdFl+pyZx\noy6ZFQYLHWPU+5N+eeqTBCkAit+wHPqzYhlU7YpYwp0KpzdTbhzuyPN404rl\nKbAS\r\n=0D+f\r\n-----END PGP SIGNATURE-----\r\n","size":1610,"noattachment":false,"key":"/@inquirer/confirm/-/@inquirer/confirm-0.0.5-alpha.0.tgz"},"main":"index.js","gitHead":"da5d0e22de84486240b12f52643fbd573f8d0d38","_npmUser":{"name":"sboudrias","email":"admin@simonboudrias.com"},"repository":{"url":"git+https://github.com/SBoudrias/Inquirer.js.git","type":"git"},"_npmVersion":"lerna/3.15.0/node@v12.4.0+x64 (darwin)","description":"Inquirer confirm prompt","directories":{},"_nodeVersion":"12.4.0","dependencies":{"chalk":"^2.4.1","@inquirer/core":"^0.0.6-alpha.0","@inquirer/input":"^0.0.6-alpha.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/confirm_0.0.5-alpha.0_1562820413348_0.5210796424976867","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":1562820413489,"_cnpm_publish_time":1562820413489,"dist-tags":{"latest":"6.4.0"}}