{"name":"@inquirer/password","version":"0.0.6-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.6-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":"4ba92ab85e9c08e25b8995c2e055b2ad12db490a","tarball":"http://registry-npm.ywwl.com/@inquirer/password/download/@inquirer/password-0.0.6-alpha.0.tgz","fileCount":4,"integrity":"sha512-7GkMkDa4thQuRNFpFup0lapFAckU5ZW9k7O8A+wwJj7EItlNSJaJM/HKkXWlXAxB2Ce0nDdymfYSw4WLmHwPEg==","signatures":[{"sig":"MEUCIE/d5BVLLPfmBYMW6Hn2AZ9qqVvR3LD2QYmwHpvdsPw9AiEApbLyeGqieK0MM8lBD+cFNhpQPwWovWCPDBwHoLZkih4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2727,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdUEZmCRA9TVsSAnZWagAAoiYQAJOaUKwwsFoeoJaL+299\nNXiF6CBgzwJP58Pul9Ldj4Lw0hRh5NK/YqU/ePnbtI9xgP3fjYka5cQglaB2\nnqp4MgncmQ4Rxf8AU06jgjimQhA2qe7IpdWxMfpTkgDcLxN7Z9JGZ6nd6jsX\nZ1+bwdHAgEdmxvaNHoALwkpRgfN7i5iRROP86pT8HNbP5rhUDO0OQyy6/yHs\n719+EylXr9zOFdVgjQJ2F62hb2uF48HpHmO2yhCs/Wr4oTNI2TXlyjuD9ERs\noXb0G6e7hkhN2+gqIQnnvh3SeSjRr2QK5EAO26erjx028XoII7mRxIzcJcXZ\nebRqhVYu25m6oIBSU+AiSurjCrpTMVWBSSGK9JKGdlM3Pq0B9K5MA3qIZBjz\nOQrNJbu2rODrZcXIOB/G8u4aWIylAVjYgFT2dhAmVnTe+ksHrYV0EjdSLcs6\nv9RGK9L4dnTTOW4LLWQe4Ki3IpxJNsfOxAWftSouTV0ofAB5g9nrE9CukjKv\naceusIaoYrUzbZMfOJROkb6PCIG+3QiwdCKSTB89zKWhQwMeH12YzOSO9fZi\n2Ylg+bJVHN2nuPIDtgAS+Gl3UnxUq0vZsmeDVYiwa1gYpBpj9nit9wu+zkHC\n0sCuPVf5kIhulABG3bLR/hw2tMKIdOZmNMIjMlDExD4vtmrTJd31DGRnxmXq\nhzwv\r\n=6Lmt\r\n-----END PGP SIGNATURE-----\r\n","size":1602,"noattachment":false,"key":"/@inquirer/password/-/@inquirer/password-0.0.6-alpha.0.tgz"},"main":"index.js","gitHead":"54285c75bc7986e0e2c7bcd2bc8ae4ddd6f05929","_npmUser":{"name":"sboudrias","email":"admin@simonboudrias.com"},"repository":{"url":"git+https://github.com/SBoudrias/Inquirer.js.git","type":"git"},"_npmVersion":"lerna/3.16.4/node@v12.8.0+x64 (darwin)","description":"Inquirer password prompt","directories":{},"_nodeVersion":"12.8.0","dependencies":{"chalk":"^2.4.1","@inquirer/input":"^0.0.7-alpha.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/password_0.0.6-alpha.0_1565541990266_0.8934186727676616","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":1565541990410,"_cnpm_publish_time":1565541990410,"dist-tags":{"latest":"5.3.0"}}