{"name":"@inquirer/confirm","version":"0.0.6-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.6-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":"faf0d0310a1dbf0b5b49eac2c678c0eadb2dffe4","tarball":"http://registry-npm.ywwl.com/@inquirer/confirm/download/@inquirer/confirm-0.0.6-alpha.0.tgz","fileCount":4,"integrity":"sha512-V2dkc8T/UHcdf3EPeefiURJFrtE5MFGuOOno6Lm4YBqd5IsKQngcmlTtSpec9nFr3i8coYCMpxvwxvMf0a2pAg==","signatures":[{"sig":"MEQCICIs+PFMCCyEQpJD8Kb8Jx5eD604gg1zGcR03R2Rbz6KAiBRp8ubgjPYXoXQJ6f3RKu5YvlOKllU4ENbyrTBkGaBbg==","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\nwsFcBAEBCAAQBQJdUEZmCRA9TVsSAnZWagAAd80P+gJJK+kQw4trOEOCXjqN\nh5aisrnj5WZODwR1id7GRDHgFZCmUmW/ag7O3IHzsPihgxZ6IYUmE384pJyE\nDvoRaFrdpmvtpMqU4LaPEWTaQoMUpnXStwnVvL/TxQrtaqdWz9COUP/0qjDI\nna/BYETs8GMECNVzuKcX5PH3lF+YSjrNfroBVl8qHxsnvE86ABQNsvT52BaP\nsbzb23eCb4Py64FMNMkbmMPfnwfI9Z0aNPljswR0Gs1yNHZh/lUNxKEJ4nc4\ny8gu0IwRkA1H0lFKgzVWv9p0c5WMoaLnTkW4S5hG+wPuIIRb2wDEkx2yVjvm\nF+2D0AhiKodHhSlNSjIPkOP3zzmZuA+sIbRS8pGwEt9MzaAQeAnPW35zVM6w\nfi+nIeZ1210Ll4HeAIT0tYvhFDOSmgKT1ZJKqid3oyvV9+jjbziz6pn0UCnP\nX/hWTJLvqgrKNF0hX1nfllLwDGwRKdoyJT3/cKolAbJgZqSmDPO/Pt8/0LGj\nkQAy29UoEXlWRcPhJCtPFuK20GhEnYV7Dg7v3FxP1XRS0rzMVx9xsJA84eeu\n1qQRFGpJbJY4LgYP8H1T98RbkNEQdoPSoyrqZj1lofky9OAMMhOpyqfUclke\nvl6mSFBDm7gihAuyVehp/2UwTvofpQ4ITs0NOWkhU9vbNyMazimcJSfCHz71\nhr6Z\r\n=hKuh\r\n-----END PGP SIGNATURE-----\r\n","size":1612,"noattachment":false,"key":"/@inquirer/confirm/-/@inquirer/confirm-0.0.6-alpha.0.tgz"},"main":"index.js","gitHead":"54285c75bc7986e0e2c7bcd2bc8ae4ddd6f05929","_npmUser":{"name":"sboudrias","email":"admin@simonboudrias.com"},"repository":{"url":"git+https://github.com/SBoudrias/Inquirer.js.git","type":"git"},"_npmVersion":"lerna/3.16.4/node@v12.8.0+x64 (darwin)","description":"Inquirer confirm prompt","directories":{},"_nodeVersion":"12.8.0","dependencies":{"chalk":"^2.4.1","@inquirer/core":"^0.0.7-alpha.0","@inquirer/input":"^0.0.7-alpha.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/confirm_0.0.6-alpha.0_1565541990255_0.03484080132977496","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":1565541990391,"_cnpm_publish_time":1565541990391,"dist-tags":{"latest":"6.4.0"}}