{"name":"@inquirer/password","version":"0.0.17-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.17-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":"9c62577ecfc6ac27e9bc345cda6b8ed718bb5afa","tarball":"http://registry-npm.ywwl.com/@inquirer/password/download/@inquirer/password-0.0.17-alpha.0.tgz","fileCount":5,"integrity":"sha512-A1y47kujyyWdBag8QYPED4uw46C1rPYREc2D6dCxdU8QgdGV+dpSzkf5zaApF/tWE87m8TvPdMVqgT2tkvqBoQ==","signatures":[{"sig":"MEQCIFmjf1+W+wQEdyb10q5JI1J9PqnRkYWMMSdbRG4R6QsHAiB52PscapYbw1ANeZIjmjbjpC3XOBV9gWFgZa3ScAQ6CA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4845,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiKAGFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoOBQ//fFJaRnEBIrPaWrLCbrfYAF5fCb9o2xOritKrmMteMUWEHwBk\r\nAzZxr9/F6xhSCiWe5O9LKzS9cjtncLXMqbXB0ZzBldt1s1tXWcsDneD2kIng\r\nMpRepjZC9gK78c+jOmPRBYA5BEYY1ARTuH/PzPixPOYOzECw2DwDPYBx/lEa\r\nrRDVpTFspN/DX8iiq3y/5IoZvljo/+iAzveXsUTtOz8GLjlp4pmVkoEsS2Bp\r\nsZkT20C02karplZt0H2aiwVWwvdqnz72gVCG+Ws/+s8bOnSMePoAKj7bMPAM\r\nSjbhgTIroHwQK4mHqWpSo/kd8agdUrKhRWB/VQJ7cYNX3l/odIVMwx4RE8IH\r\nqjJT8oXlJmDXOppMugJ0SQaWo5jfDMUeaEWPW3Nv4TXBp4js+jpK32pvDJwn\r\nTeCbAe1ZLqlcNagQBjB+L8RMuQh5DZmOUcPNRKAUlCO2L27ayJPVq4YxCXoF\r\nX26n4auvwUcE2Ingcb7qT3fI543N/SKhOUsuUfxdoN7mYP4gA98xSQr1gp/g\r\nZr3k7+bJq+s9XNEEMTvPp8nX/qqrI/bblB2rtfeatrUrnYsMZ+Dl1oFD3CAc\r\nKlxAHM7dL4FxCH+EebdwOBcOj0OWX17bGp5uF7088+dk6JxUSbHGztl3Lc6a\r\n+1WSZuQk3axeNWjIYO6ok8IXHP7dDQVPEN4=\r\n=MByB\r\n-----END PGP SIGNATURE-----\r\n","size":2180,"noattachment":false,"key":"/@inquirer/password/-/@inquirer/password-0.0.17-alpha.0.tgz"},"main":"index.js","gitHead":"e71313db1a6e26f501b58d75a9d3acf53dab5da7","_npmUser":{"name":"sboudrias","email":"admin@simonboudrias.com"},"repository":{"url":"git+https://github.com/SBoudrias/Inquirer.js.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v16.13.1+x64 (darwin)","description":"Inquirer password prompt","directories":{},"_nodeVersion":"16.13.1","dependencies":{"chalk":"^4.1.1","@inquirer/input":"^0.0.18-alpha.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/password_0.0.17-alpha.0_1646788997808_0.23162113546320984","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":1646788997915,"_cnpm_publish_time":1646788997915,"dist-tags":{"latest":"5.3.0"}}