{"name":"@inquirer/confirm","version":"0.0.8-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.8-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":"638cfbc80a140a7991023e97595a9fc25c49746e","tarball":"http://registry-npm.ywwl.com/@inquirer/confirm/download/@inquirer/confirm-0.0.8-alpha.0.tgz","fileCount":5,"integrity":"sha512-EQec+oyAV28d1OCCH1Unkc5P81voV0FYNN4H5hsZ+gWYK+TSZsnXdJV8cqHkSXAkU07tsNFP2LMny5vMJ+y/vA==","signatures":[{"sig":"MEUCIQDPNCJvIDc7v7ImYvEsSgl7c11ozfvqnQXkhTTEtfK+5gIgLBLurL/CzNoDQr/VrkRpFEP6b/lbgCVWO60uacGcE8A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3756,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeWf9iCRA9TVsSAnZWagAAuZEQAKAKQHfQmm7eJNYYHYOU\nYfhNJrwnfdPfvFKKiU5olpndhRPRE9oxK7xr4c8Q6G4daQGzGlWzyLhBD1vY\nB+YmY7PmhLrr3JztW7USU81jJ7aW4lHx+UFdadtIu4hdad4tcCBn4fziGYVv\nEgR7LyIWDliob0gSCS7TOAqreynYdHqWFkYz4PNPrsZYTLY3y5AWn4Avc8V1\nc6UmOS9Q9Vw0amJKpfEoijXTU341rEpZZmNpQEWFjahIupD8TObifbqWKUxx\nipXT+eJv5pC7nJsqCrZWzwZL5V77F2i5xVUbfhuxQ4Qd22zWeB6qL6fmwIfV\nDvT9vaE40PpkMq3EEOVtITiT1KxQbACEW6x59tQ1o0ne7PTFkNG+wsWvCCxw\nl/W9w7t9VKYQYkRrtfE5NSjRtaXXJ7TxHLAc/0EJ0//T+pTVSHYoMLK0npP0\neKRqiMmaSGuD45zA/Ol0ufyEStxFgGqjF6K8XkeThlH+mmGVLZnby6LHokbR\nmeuvIZscUxSy8VhrcDZiM8eWtbD/8BNFE02VuXoMzEWeiSTXPjvWt3gj+Fr7\nGDn4Tda8AkdYhexIrugB3NEr8CI5gljPoRwPPxVSGAxoVkE2GZsmLDKQKSW3\nv1Ggs58PvCCPCoE20NPZ5O1EUALIOhxRSK5pXSBL9lVEJaeHZM4EztlpyNvc\nE7EN\r\n=9VoT\r\n-----END PGP SIGNATURE-----\r\n","size":2024,"noattachment":false,"key":"/@inquirer/confirm/-/@inquirer/confirm-0.0.8-alpha.0.tgz"},"main":"index.js","gitHead":"65a4d598658e1b7dfd45ec88620962c989c94c5d","_npmUser":{"name":"sboudrias","email":"admin@simonboudrias.com"},"repository":{"url":"git+https://github.com/SBoudrias/Inquirer.js.git","type":"git"},"_npmVersion":"lerna/3.20.2/node@v13.8.0+x64 (darwin)","description":"Inquirer confirm prompt","directories":{},"_nodeVersion":"13.8.0","dependencies":{"chalk":"^3.0.0","@inquirer/core":"^0.0.9-alpha.0","@inquirer/input":"^0.0.9-alpha.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/confirm_0.0.8-alpha.0_1582956385931_0.8548215208638152","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":1582956386083,"_cnpm_publish_time":1582956386083,"dist-tags":{"latest":"6.4.0"}}