{"name":"@inquirer/password","version":"0.0.8-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.8-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":"70f851ade09dfbe2c473f54c43d6402ab6cdd744","tarball":"http://registry-npm.ywwl.com/@inquirer/password/download/@inquirer/password-0.0.8-alpha.0.tgz","fileCount":5,"integrity":"sha512-F6CGNxaT9bhyhh9hMkyku480PjmyypkIG93o21hojbBGDWCN/WuVAOGNgRtB8kB4eJwmANbs00N8JaNKWtPWcw==","signatures":[{"sig":"MEUCIQCgakhuAsUcX1UF9GYllRXJhcZ7kiGkLh3pnHyrT+lA/QIgfMYPBHpCBpm+kPCIMPfKoT4U/8eDkr4oXFQaBvkvsVE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4888,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeWf9iCRA9TVsSAnZWagAAbDMP/2Aux4S/Kn/wn7Eu3Ffz\nS9NSiAY/N/IgekjfORTBLcRbSfFieVDsr7XjQ1ynEOmqasDMNiB50SLMMIfm\nQzaG7VjF4Li0vJYwkpoNuqAYTfRSwYbmIDtr7DMUOKBfTOKI6xssYn3npBEl\nUG9uC5xccPctiJ2WYfGq0I34Voyhj0vUo12M2kPN5H0/C2b6Cruwevo4h4ZK\nq0RLbOWZMk6XkzQvRI7OnwFnT6tNY6fbVHAbTbLpZSmUbPEFprq80ot16Q3P\nLuP+TxQG2m4TS3/EXvHwYjmCzYfu/xHpKz+IEfKOBXOMOhJpwlOjM26Gkk7t\na27XnxSyHBhcYiPp3M0sKK3kEuyb7J9sxHFNMVMCG7Jn+4RIIVuDEVnyIhXb\npc8HSF1elEsZP3uKL6VNG0i+zP+gIg3QwjTeZjO1Lm/kb12ZA1/gSLDRvAmh\nxYdY2mdT4Xj0yl31G7mNVt+K//G/smKyX8T1GkS0CSvXdqVGUqWZcd8e88Ae\nBSdZuUq4RlkDMkOtxKgTYkx7gZ5O/shk1M1s/5xmZMCOHmOz+5TdCWNUn/Av\nGylzIKjJzjBDqQqIF/F9UBYGjWJ9P7UlxFNgCKlpgHZohB/nbG+wzZjMNNhT\nLD4Omkt3DBBWNKb4Vj0R4ZxyFlRCgd1NoGVNYQH55IeyWGtL+lk2OYwu2dA2\nCHei\r\n=03b3\r\n-----END PGP SIGNATURE-----\r\n","size":2201,"noattachment":false,"key":"/@inquirer/password/-/@inquirer/password-0.0.8-alpha.0.tgz"},"main":"index.js","gitHead":"65a4d598658e1b7dfd45ec88620962c989c94c5d","_npmUser":{"name":"sboudrias","email":"admin@simonboudrias.com"},"repository":{"url":"git+https://github.com/SBoudrias/Inquirer.js.git","type":"git"},"_npmVersion":"lerna/3.20.2/node@v13.8.0+x64 (darwin)","description":"Inquirer password prompt","directories":{},"_nodeVersion":"13.8.0","dependencies":{"chalk":"^3.0.0","@inquirer/input":"^0.0.9-alpha.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/password_0.0.8-alpha.0_1582956386008_0.652340574291731","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":1582956386113,"_cnpm_publish_time":1582956386113,"dist-tags":{"latest":"5.3.0"}}