{"name":"@inquirer/confirm","version":"0.0.4-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.4-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":"26c8db6393e19f746638b4178dcc9d5a5a906473","tarball":"http://registry-npm.ywwl.com/@inquirer/confirm/download/@inquirer/confirm-0.0.4-alpha.0.tgz","fileCount":4,"integrity":"sha512-YwgWTuUM86C6+m8/Qn6bZyp6eLh2alkawgkCjy6ix6pFFoDvD2x7GElXlQeUzBEsJV36kLLv6t3rZ+U2CrAZjg==","signatures":[{"sig":"MEYCIQDLmGmOp+koRK5dNe0U9NHt5P9CRBvxMzIPzdwgcUCs7gIhAOt46BTA7l9kBQvoO6BOgJlnDx+TK89nptCm0c9uynaf","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\nwsFcBAEBCAAQBQJdCxEuCRA9TVsSAnZWagAAMFEP/jgfV33cjwkKQGSJ1p2N\noAom6DK5Q7UAeRh1lV4Rg5CauQlycgP4637wAWRxCnX6QjZb/LvF/j+DCgXc\nRP43nYm6Ex/e7WcZ/C5rDRsor9h6nodmfhPq9RaI8WFcD4oBTHxW+RvLUwJl\nbudLGtMoTNaXioEQoiEKB8Zy62ibVScwDpfX+b9FbN3bOvELTjiuODqiN292\ngq5pstzymY5SdDyT9pTJKdQdQa84HHkmsR/6DEiRMW8Vlr4/y9HOPNco4j1/\nau31Vqppjulq1JxXnxqhj7nSqpMXgav7lYFEUhKSUmJ6G8OuroTjLg4Hrdtm\nypgqkYqDdwWLzILi0rCCxfQaHfagYTtcOlidUCoeQe5B7ubyGQUAP50ydllm\nIClutaPA0UGDXWZ1oOhD2uhQEv8ZMhyNx2XMmGxyaiQ4Jzt8bQwPcu7P/Vey\nzLU2UvAf9BbvNC1yI9i0FIyyrNWY6GgneWLr5AJ3ddBcOlBM47wrGCwXugJG\n+5tpPUWvbbMK4nDWm+Sx2DA/x9Ud8VxNuPcRkwhnV0qkzenCPJovMsxC2Eo5\njEh6W+JdVk4t4SN98vBgfSwZI4V3cVcK4n0Eur+1ykC+F95T+2KAXrg3VmB7\n9GUO4z+ZbVrcpjpKd7rBS8peCfM4lIWiPimcuEYtH2c4X+rQUBOgfLiVyEjo\nYCxo\r\n=GWae\r\n-----END PGP SIGNATURE-----\r\n","size":1609,"noattachment":false,"key":"/@inquirer/confirm/-/@inquirer/confirm-0.0.4-alpha.0.tgz"},"main":"index.js","gitHead":"5f0b513627f5576c54ae25a0ca03b2da010f9730","_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@v10.15.0+x64 (darwin)","description":"Inquirer confirm prompt","directories":{},"_nodeVersion":"10.15.0","dependencies":{"chalk":"^2.4.1","@inquirer/core":"^0.0.5-alpha.0","@inquirer/input":"^0.0.5-alpha.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/confirm_0.0.4-alpha.0_1561006382142_0.07049301257927576","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":1561006382266,"_cnpm_publish_time":1561006382266,"dist-tags":{"latest":"6.4.0"}}