{"name":"@inquirer/password","version":"0.0.27-alpha.0","keywords":["answer","answers","ask","base","cli","cli","command","command-line","confirm","enquirer","generate","generator","hyper","input","inquire","inquirer","interface","iterm","javascript","menu","node","nodejs","prompt","promptly","prompts","question","readline","scaffold","scaffolder","scaffolding","stdin","stdout","terminal","tty","ui","yeoman","yo","zsh"],"author":{"name":"Simon Boudrias","email":"admin@simonboudrias.com"},"license":"MIT","_id":"@inquirer/password@0.0.27-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":"79e37b704080d75d9b2137b84229887b5ead2e14","tarball":"http://registry-npm.ywwl.com/@inquirer/password/download/@inquirer/password-0.0.27-alpha.0.tgz","fileCount":4,"integrity":"sha512-l16EGPphn7WDly8ELa93rQFRYSBjzfK9glPOEE6cgc/lPZ5KB11ha6562oOR4vrQZwc+eT8645zs1wjBrv3srA==","signatures":[{"sig":"MEYCIQDk2ykJN/9KLTxjNodiQ5rM88PeuowiDc27HmibNjE28AIhAI8eGaQvZx/9p21gvpJAz37bkMxIyEfpYYYwrlgrTgAy","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4300,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjP0NDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq+tg//Tl4jqaRfN4kjhdsz21pnZfvVteI6E3ORSsrI1WIDDLlX5aBe\r\nYFgbeJQuOuKLMuOiweVSjFC3uNJD6XoOZcEqt5EbbdwhPLbOjrI0PswoU4Jn\r\nsXz6Rm4Jnd6Ck+F/RJUqShrzon8iggCizKi+6MuDV7NdcQBpxJG/DJbwUGE8\r\nIx0xASE8rz06vRajNKWtXsBnubdSNIGimHm9HsCtYOQp5mZeiKLEuNCPTvlq\r\nUfzu5yS7dfqNz8OPVltyZ220tZJEkQGdKRCc7k1d+vM/JI0jZNYC2o5i9UET\r\nGqGHOp/cfh9uIg5vmpt5JANA54R8GsaZ04Jsn5QhF+m65t4S1J6C2oPA/qZp\r\n63MmKboM7HOoqAda7uJ5yJxgJurSWd8BMyqzLb8l/4DXFpt1RTDUQt1sk/0C\r\nwNXUirmhlxb8qWauwlFsGpnewGG1IJMWr0TDi5TDmS2weHVi3B8S+GJmADE/\r\nnCB3idu1FGD5dduFVfrhjIsqkadymijJ+7dn0z4HXbDeF9WFlLsS40k+VCDD\r\n96Z8D+lFslJ8Z+DHzOxSaMkwdJzeFisvbSWsvcLwDcpW6XYwcTCBpXHa77cn\r\n7uZIU0c1fLauiPz+Y7P6WMaYTvCw/hgIdwHYuOeTyClRskbeEXsZNiLuJyTY\r\nRjXNC6/0svr7HL9AniRGEugDN+JY/mHLUlg=\r\n=3nLs\r\n-----END PGP SIGNATURE-----\r\n","size":1610,"noattachment":false,"key":"/@inquirer/password/-/@inquirer/password-0.0.27-alpha.0.tgz"},"main":"dist/index.js","type":"module","gitHead":"94d3217e830c4834164a50c0cadaca699dafe60c","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":"8.19.2","description":"Inquirer password prompt","directories":{},"_nodeVersion":"16.17.1","dependencies":{"chalk":"^5.0.1","@inquirer/type":"^0.0.4-alpha.0","@inquirer/input":"^0.0.27-alpha.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/password_0.0.27-alpha.0_1665090371052_0.7431872849521772","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":1665090371257,"_cnpm_publish_time":1665090371257,"dist-tags":{"latest":"5.3.0"}}