{"name":"@inquirer/password","version":"0.0.9-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.9-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":"aab2e0ac9782f687114c7b3fe92513bf3601b326","tarball":"http://registry-npm.ywwl.com/@inquirer/password/download/@inquirer/password-0.0.9-alpha.0.tgz","fileCount":5,"integrity":"sha512-C4q6gatLU9lreoLpJqhWLZIMxYI08Ja3y5bQqPwBGhwhNqpUgkqArho9JKPZJv2H2oXl5EWqriiIGV3Z8JU2IA==","signatures":[{"sig":"MEUCIQCLBRxaZAU4ZrTSeqfk1sChUbYXD1LZb4PJA00rWD6gxQIgLjv1Wy3HVyLShy6jN8W/sXJbt3KukmLCjS0lZA5Kea4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4889,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe5tRZCRA9TVsSAnZWagAAEyUP/1BFPVgs4qE6QAeRNKF6\nL/hgF01HOiu1zuduM/f1ZxkQhlHWnGDK75MwSPI7nRAwzwQYMaUOgCg5N67x\n3rKtRGRksnFf5iGUJ2NdnvAWulQuxfi+1Aql6Z97tX3qvLgBz1xjeJQCjGan\nnKpIhnpP6w5EEYjl+My5APrXANcG+Sr6RvgaII00JoUSqaut1NFYhY+AqEsN\nUsqyCKFN9pMDpXC/o98kzqS+hgwS8tt21CRVe7huwrkyUWM6c7+8Oc0k3HN7\nNxD5Git0x/p+n/xeQO6fvTUbdnZjMZ7YZlgsgQU2a0YjmpDKHUQwn5kW0wS9\nAitsshyGpVZLsKAYft3tLun0GEDRO1XTmkCq5Qf5rz859ZPDO1gq96o6dGH6\nok4qUL6l6lVzm1p3hM4Xpyg+LqIcuUd9oWdCQh68A2e6B8LL0DuhWd51FIRY\n//xHOkAaHgWOScGZQ0iKT6P8velEGkOE5Ou7FL2Sf3qsHS6FEYpm0mnrmqq9\nSjxA2/MkKJbA6JY28nhVbi6Lgiv+wf21JNnkZWYoPCVUkk4f9PgBmCEWYJgY\nq12flForAcY2oiNyNOSrZC7T70vIfycycDnqZPAAHmnN5wAFx7RqhV1ejq7V\nZUQK+sOZva3WrpsEsFHM5sA2XycppwzM8rUGc6NHjyrr+xqHiO0VMOZFYFVg\nxRMc\r\n=ZtPZ\r\n-----END PGP SIGNATURE-----\r\n","size":2203,"noattachment":false,"key":"/@inquirer/password/-/@inquirer/password-0.0.9-alpha.0.tgz"},"main":"index.js","gitHead":"7a699cc7566b4b6bc9a1e8d93490d3f5a01685ef","_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@v12.16.1+x64 (darwin)","description":"Inquirer password prompt","directories":{},"_nodeVersion":"12.16.1","dependencies":{"chalk":"^3.0.0","@inquirer/input":"^0.0.10-alpha.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/password_0.0.9-alpha.0_1592185945517_0.725071232711042","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":1592185945633,"_cnpm_publish_time":1592185945633,"dist-tags":{"latest":"5.3.0"}}