{"name":"@inquirer/password","version":"0.0.22-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.22-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/blob/master/packages/password/README.md","bugs":{"url":"https://github.com/SBoudrias/Inquirer.js/issues"},"dist":{"shasum":"0b8d32a30278c168e3d97d111944fbbea275b968","tarball":"http://registry-npm.ywwl.com/@inquirer/password/download/@inquirer/password-0.0.22-alpha.0.tgz","fileCount":5,"integrity":"sha512-wBuT/cbOAzGHzH48Vmkes44nr9Lehlgz1/+N4MnvrFRSKQGA5uFVrgee/Fzd13EmFgdI60V9RW3HAMClY2z+8A==","signatures":[{"sig":"MEUCIBghN/PE3ioa3FVvMZk0zgPRG8gtWlvaETu1riA1f3tKAiEAmO9TFmFcKzVwaMBIXqz2USiJQ7os/CcD1s50M/RP2hg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4921,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi67L4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqqKw/+KN18X/7mVg4j5UuLA05q7MX6G0nr3hptID/2Wl9A5g7Jk8gc\r\nF/sRw8p26QIzmU8wBle6ameOpaUFKzAlm33N+yYKXS3cfPlNS3yxwvI2msgf\r\nXEmS/CYiuYmp6DgGM5E60LIAjyBB57z/ezMR5mfPd2JXFR0JdKatJJB4vVQW\r\nwAE0Y1TQwmBgCcBLJbTyChdkReMXSjDa92fl1rxanHoyPh+fDl6WNrmdcBgp\r\nxJqs61X4l//1FZQek36PALm9FJ8ayLGKJ3NnpSPGzNGnWPK3ws1WX1pIkqyf\r\nI6x0nrcV2VFBD0L5riFRMJE8eJ3jNDkW2EIdtT9/urXrZ2lVGlAnO5DgpGXo\r\nRiJFZIL6Dij0raYJEFwzp0J1atuQq/RWHWTBPYIbuElTQJD/89Yvi4CtDUxN\r\n7ItUzDh5GTefrT9DzSubE0Ct4B2Zsw22ToSoJeGZjaTD8UUlJb7Qpd+9FrRv\r\n5DxCk7dFvSLa0BcYh/cwvKlCLBFh06nVXFPGcXCfAozsbicGVPzvk8wsucJO\r\nEkuGKXL3aw4XQAGfTyESioUTc1HuxqoYuKXzjIB/ilRSuDBUUjRR3Z2IwE6j\r\ncbZD1snLy0CZE2Xdhw11AbeYlZ5rhq/A0Vip1gfbH+7owk0uuoK/9TJDD0ru\r\n65ORafbbBTl+IzUyh6W9DdWXW/dTu0NhaF8=\r\n=a2Fa\r\n-----END PGP SIGNATURE-----\r\n","size":2202,"noattachment":false,"key":"/@inquirer/password/-/@inquirer/password-0.0.22-alpha.0.tgz"},"main":"dist/index.js","type":"module","gitHead":"a95b68efa6f407cefff63300e7e50da34c6b6693","scripts":{"tsc":"tsc"},"typings":"dist/index.d.ts","_npmUser":{"name":"sboudrias","email":"admin@simonboudrias.com"},"repository":{"url":"git+https://github.com/SBoudrias/Inquirer.js.git","type":"git"},"_npmVersion":"lerna/5.3.0/node@v18.4.0+x64 (darwin)","description":"Inquirer password prompt","directories":{},"_nodeVersion":"18.4.0","dependencies":{"chalk":"^5.0.1","@inquirer/input":"^0.0.23-alpha.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/password_0.0.22-alpha.0_1659613944026_0.49912197320915563","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":1659613944195,"_cnpm_publish_time":1659613944195,"dist-tags":{"latest":"5.3.0"}}