{"name":"@inquirer/password","version":"0.0.13-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.13-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":"e2937c63522da7a2e158208baa9193433491b896","tarball":"http://registry-npm.ywwl.com/@inquirer/password/download/@inquirer/password-0.0.13-alpha.0.tgz","fileCount":5,"integrity":"sha512-WbkR1/nIS2bDmgscI1pnFPAgeK9Emx6q7uyjDjnTEcmL+ESHi/u9wL5SyBrDGiJeJqxw43Lcp61PQlOAuX73mg==","signatures":[{"sig":"MEYCIQDiueeupKFihjQw+Hpy9eh2kupYd0IKNyMd4o4Fss5jrgIhAIpGch/vJDNXauquD0oT59lzt8QBCEJKi5ufak+Wq5Oo","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4861,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgODZWCRA9TVsSAnZWagAA7woP/Rlx63iNXg0vt96IYAxU\ntlCnaZe31TE5K2ufaPHTTUKtc1WnLdVWA37Kk8HlGk5H24YmNjXNFwIQ/ad6\nsnVQaIZVQrZmwlnpouXySE6vXPSRDuzQ0R39/epASazNjVfjfhqM07IMkisu\nW+c+mlucmIry1sfliGHB0V5iJHCMDqjH6pd3aHyboIcu5d2o8gH4AWeH9S/v\nu41Nbl0KbIR9EgPte6HhGs70MgdfRoOxkGTUMOXsLlEvX6+xN6ma7eZAcA3W\nHmVvTwx35qRagYhGT/t6E0pBm+9wpI9GscT6XPEmklza0DRNec8MyRUbsMlf\nD+iWU9RWi739Gb+93dwom3uhlx2bDC9zkqevYsv8CwjN5yHnFwRmSy48yqVx\nNefQe1lSd0FBqtdZqoQqjKzgNpjH6vO0ZZ59p4TnzQwJNIDmZWAG15FYm8k7\nDrp9pfoyvruDuVpQZOMn3WJdKprwxqavXkm1RLgzNRWzjYLaatFdZBf1EhMs\nOglpD5vbmHVepJ8X2kb13zcs4uu8nJaSjcKdFNzW4FLlBzJh/S/fmRGyd5uc\ngUcX5F68/X8yPOwf3QnBoANXN2F/Mkf8Rbl4mNqaI7DoQFdJluinwNY5/QBw\nX6zNPzAzojK+7FTIFeJXUCeO/FRc33uug3GI+GCJGzg3PISu6OSgz575DS81\nEoax\r\n=pdKx\r\n-----END PGP SIGNATURE-----\r\n","size":2191,"noattachment":false,"key":"/@inquirer/password/-/@inquirer/password-0.0.13-alpha.0.tgz"},"main":"index.js","gitHead":"6bc00c0ff2e63835b3096c5d82ca96dded632f3d","_npmUser":{"name":"sboudrias","email":"admin@simonboudrias.com"},"repository":{"url":"git+https://github.com/SBoudrias/Inquirer.js.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v12.18.1+x64 (darwin)","description":"Inquirer password prompt","directories":{},"_nodeVersion":"12.18.1","dependencies":{"chalk":"^4.1.0","@inquirer/input":"^0.0.14-alpha.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/password_0.0.13-alpha.0_1614296662256_0.01970326267982081","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":1614296662390,"_cnpm_publish_time":1614296662390,"dist-tags":{"latest":"5.3.0"}}