{"name":"@inquirer/password","version":"0.0.28-alpha.0","keywords":["answer","answers","ask","base","cli","cli","command","command-line","confirm","enquirer","generate","generator","hyper","input","inquire","inquirer","interface","iterm","javascript","menu","node","nodejs","prompt","promptly","prompts","question","readline","scaffold","scaffolder","scaffolding","stdin","stdout","terminal","tty","ui","yeoman","yo","zsh"],"author":{"name":"Simon Boudrias","email":"admin@simonboudrias.com"},"license":"MIT","_id":"@inquirer/password@0.0.28-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/blob/master/packages/password/README.md","bugs":{"url":"https://github.com/SBoudrias/Inquirer.js/issues"},"dist":{"shasum":"bfff3b12cbd6bf28360f28b1e8d3972076c66572","tarball":"http://registry-npm.ywwl.com/@inquirer/password/download/@inquirer/password-0.0.28-alpha.0.tgz","fileCount":5,"integrity":"sha512-9REn17FanU5+/XX8OKGI8brFZBG9Ax6CPuZAgH9chUm6mZCDUfQEOO0NXW+7STDzqvZqzQwfABWHyU7jS8WS1w==","signatures":[{"sig":"MEUCIQCd5+KTS+LLllYWztOFjWCQFn3X4+CtiTYIs+vgfxnwHAIgOh4k+G5mXRBznxotqtChBXRSkfskT2Faa4nbeoCVfB8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5415,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjTcH7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq3BA/9HYg6zV69K5ssHNgGz2dbv83Moiu7k5VRuq4F4E4OPr2ygd+e\r\n0kX9APh8IMXQZbYj7uo9yepz9oMWve19+zNYsDzw271+vWHctjIoxV5J9o/W\r\nS6kATQ3D7bxDnvfdis/GXuIx9jBxfOaT0VEiZi7hOSjqGPeQMem719H6he2Y\r\n1cff18o957i9S6nI5qtniwsd1IGggEqpjRiQ9gLtcs/2Koz83cBSWXLl3xHz\r\nKp8dLiSQmbKhtXKICmyL1mZtyGHNYFz/AMFoBT+29yva81m43lq7pGhMA+8w\r\nU3gRmXgCmOCYgFZV+WjrPmSqz1mfkoPjNHw1kG/JWabGa04BdgEoyIaTnaCS\r\nO423dPZUhLk7Ify8Q1ZSJB2rnQgaciBfHnf3lHOPu/nU5tQD6+zMIh8H/rFR\r\nEp95NaE0FkJBZ9TFqnteBLuZEVBljxycI1Yo4pIA9QhYXUKb00lLvwXfLN13\r\n4l3BiZHVcMTmaiKR5//iqHNbq3KFYuttFZpr2178D9IVQ326zksDnocQ9XGR\r\n7LBxMrUPqncyQxMwlpnZZzU+vhrEsLUeuPy+pyfb5gA16JbGop/7NGp9iDjE\r\nNhVciRlJ6ZCZZRqakBirZauxqh0EsA+9z5qgHa0Vq7sz54OKcitalRIQmJxE\r\nHDvKAjW9n0EGlJ0jCjWhQBKdbDUAd73Goxs=\r\n=Sv5r\r\n-----END PGP SIGNATURE-----\r\n","size":2328,"noattachment":false,"key":"/@inquirer/password/-/@inquirer/password-0.0.28-alpha.0.tgz"},"main":"dist/index.js","type":"module","gitHead":"f532af8be2d622caa5e54adf4c084d588c9ffad6","scripts":{"tsc":"tsc"},"typings":"dist/index.d.ts","_npmUser":{"name":"sboudrias","email":"admin@simonboudrias.com"},"repository":{"url":"git+https://github.com/SBoudrias/Inquirer.js.git","type":"git"},"_npmVersion":"lerna/6.0.1/node@v16.17.1+arm64 (darwin)","description":"Inquirer password prompt","directories":{},"_nodeVersion":"16.17.1","dependencies":{"chalk":"^5.1.2","@inquirer/type":"^0.0.4-alpha.0","@inquirer/input":"^0.0.28-alpha.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/password_0.0.28-alpha.0_1666040315383_0.4461316718574122","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":1666040315595,"_cnpm_publish_time":1666040315595,"dist-tags":{"latest":"5.3.0"}}