{"name":"@inquirer/password","version":"0.0.4-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.4-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":"5148ab06a6d82ff5c867fffda6d26120da084d83","tarball":"http://registry-npm.ywwl.com/@inquirer/password/download/@inquirer/password-0.0.4-alpha.0.tgz","fileCount":4,"integrity":"sha512-68Q4ZS039cgENjUpX1GWTm7pHrWG5DsfVWNfzZ0CdEh3B/sLk/iY5/0shh6v+K/24dDnxcqFNkbD0pSb4MpiwA==","signatures":[{"sig":"MEQCIEdhQmhwv/E5DqN2Ml3YLIzLdlkmmA1G6mW4/Qk6unmYAiBCBU+QoEEnMMdruvSMm9Vfacfa9fJqgkzsurvYm8z3kQ==","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\nwsFcBAEBCAAQBQJdCxEuCRA9TVsSAnZWagAA6wAP/jzJsBpPuUiwcdd9N+qq\nBtGgLkwjacr308+rifxTl2OE6UZlCFfvZhJAyWu+71Fj92GNED445ePpaLJl\nvWl+32Q8QzjCDrAARVoBKwLensWmLcbD+yMf35XUyvziX1f0LDEcm05wgHsU\nX3JsyOf0gymAvsX6tsFnGDdrjPuYLI7SxXf5mbkrUaCQACVAnIm+YXTyuQqC\n7WaFZxuLFOeuXfp0xCao9eW639+X2xNfUQcDCmRyzVW0RqAtrApOYSKKZe+o\n1CI0m9shFjWkVTBhyKh2dyw3zPBJGM/3F300fWH08AcQ+OF/VJaz99LDl+Q2\nIUtnu79X9GD4Rc3cvGkaME0/R22YuQfkl67/JXabhjdTCP1mwNgIbmEEOVQ+\njb2OTFyfhkGqy3wVuEP/z71NPTaGAZrxtZmNyB3nHhevaSoU18cvdEfYj3vv\n9t5vnehv7cizP7Z/lvdoHSE7Mh7J2nnrDXVhbqxbRMXAc9wAeK4A2EGpjOqN\naRTwNwVoqakfbhg8S4e91WyqSYroq/xr+CoIj8ksJQylqQQASB/Pbw3sJEvZ\nujlULBsXjPZuRb+204WJm0OVRrwIgicx5YjSX9V8Q0rSg23c2tGv/dicJxGk\nyV/YCL2lBPkwM3MIs/rdYxQBSxiAYx+44pluYIwuVrXtgvwDfYOkHny88ZcV\n6J1F\r\n=J/cM\r\n-----END PGP SIGNATURE-----\r\n","size":1597,"noattachment":false,"key":"/@inquirer/password/-/@inquirer/password-0.0.4-alpha.0.tgz"},"main":"index.js","gitHead":"5f0b513627f5576c54ae25a0ca03b2da010f9730","_npmUser":{"name":"sboudrias","email":"admin@simonboudrias.com"},"repository":{"url":"git+https://github.com/SBoudrias/Inquirer.js.git","type":"git"},"_npmVersion":"lerna/3.15.0/node@v10.15.0+x64 (darwin)","description":"Inquirer password prompt","directories":{},"_nodeVersion":"10.15.0","dependencies":{"chalk":"^2.4.1","@inquirer/input":"^0.0.5-alpha.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/password_0.0.4-alpha.0_1561006382140_0.6460676926400133","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":1561006382261,"_cnpm_publish_time":1561006382261,"dist-tags":{"latest":"5.3.0"}}