{"name":"@inquirer/password","version":"0.0.10-alpha.0","keywords":["cli","command","line","password","form","input","prompt","terminal"],"author":{"name":"Simon Boudrias","email":"admin@simonboudrias.com"},"license":"MIT","_id":"@inquirer/password@0.0.10-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":"aa150fd9f9c8cc6b3023d83c093401c14e4371c7","tarball":"http://registry-npm.ywwl.com/@inquirer/password/download/@inquirer/password-0.0.10-alpha.0.tgz","fileCount":5,"integrity":"sha512-xA1YAsh3Pg1wBZyJIfFZjkyrk8hRLyEmy5sToK1nG1LdsjzNT3DyAjgeyZCwALVyy7F1MABwmll3SQbKYSIMEQ==","signatures":[{"sig":"MEQCIDQRP+++CR3Sj7ov8Ui2uaxLQQmnEMfcxH/nPeKplbjfAiAoynvB0UK08pWteUOsuJmpBcoIWXRa5pdlvuJrN7tKhA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4867,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/WEHCRA9TVsSAnZWagAATIQP/1sWxFSmqBjKitL5j2cx\n/hw6vtQ/q7WIaiD49MXsK0YIQlgEo4oMp6bKg8uMQ+cyEOqh3YWK9hcX3zZb\nFvq292p+IcNvgZQ+aF65M1Ov4FkG3xEel0oZe0MA7Dc+xnhKhugQR9uycrvC\niRYD/sx8Juz8kuRnnfndJjea8CVbyFN1byXQqxcng8zJoHW/tjdOWxWBhmRu\nXBVscbeZlQcGDRIclazU7xa0y45q3Zj+1MWbL+GDKacIfDKGqCjIcUt3I0Tf\njd/gjYMsbtmaf0A5LGT3eLqvVUmMDKJKBnEO/VLK7lbx1Oh9gohcBrvIZGHg\nMwP4UborG37AyW6BgevJzvoIhh8xdNdPrTENFCBTCsr2wIS2qqS0LrChz5zC\nhoLA2vX5kwoFc9wqdrEqcDyBGd3oKi48xPJTeP3H08hOmE4qxeVij/6NTJIx\nYe70Zm+AvFZv8WcxVnTQyO9WRO9HtED/eFbntUxLvYSL5ENFCtaA5w/MhKyY\ndsvV7zphYTQ2EeJEbb7pG33UbDEKlW9fe3lU/CLpkTc5UegBxlCdAplnNF6G\n+sHwIvJ1AH3fY6DN38VS7Sz508daCUUD00R+MbDukYyUi8JMQdSXltUPNJqX\nEqmV/6Ls7TTcbD9vGXuPyhOe01PX1fezXmKZoTnrE3ar/VVFLSJvh7Y5KSpD\nK6+i\r\n=21+T\r\n-----END PGP SIGNATURE-----\r\n","size":2194,"noattachment":false,"key":"/@inquirer/password/-/@inquirer/password-0.0.10-alpha.0.tgz"},"main":"index.js","gitHead":"434228aba4908e22063eef37869a427bb605337b","_npmUser":{"name":"sboudrias","email":"admin@simonboudrias.com"},"repository":{"url":"git+https://github.com/SBoudrias/Inquirer.js.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v12.18.1+x64 (darwin)","description":"Inquirer password prompt","directories":{},"_nodeVersion":"12.18.1","dependencies":{"chalk":"^4.1.0","@inquirer/input":"^0.0.11-alpha.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/password_0.0.10-alpha.0_1593663751294_0.3447333808481621","host":"s3://npm-registry-packages"},"readme":"# `@inquirer/password`\n\nInteractive password input component for command line interfaces. Supports input validation and masked or transparent modes.\n\n![Password prompt](https://cdn.rawgit.com/SBoudrias/Inquirer.js/28ae8337ba51d93e359ef4f7ee24e79b69898962/assets/screenshots/password.svg)\n\n# Installation\n\n```sh\nnpm install @inquirer/password\n\nyarn add @inquirer/password\n```\n\n# Usage\n\n```js\nimport password from '@inquirer/password';\n\nconst answer = await password({ message: 'Enter your name' });\n```\n\n## Options\n\n| Property | Type                                                        | Required | Description                                                                                                                                                                                                             |\n| -------- | ----------------------------------------------------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| message  | `string`                                                    | yes      | The question to ask                                                                                                                                                                                                     |\n| mask     | `boolean`                                                   | no       | Show a `*` mask over the input or keep it transparent                                                                                                                                                                   |\n| validate | `string => boolean \\| string \\| Promise<string \\| boolean>` | no       | On submit, validate the filtered answered content. When returning a string, it'll be used as the error message displayed to the user. Note: returning a rejected promise, we'll assume a code error happened and crash. |\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    error: (text: string) => string;\n    help: (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":1593663751486,"_cnpm_publish_time":1593663751486,"dist-tags":{"latest":"5.3.0"}}