{"name":"@inquirer/password","version":"0.0.15-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.15-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":"7f34ff1d6a93877a5e3f64bf18071eea4ceb96ea","tarball":"http://registry-npm.ywwl.com/@inquirer/password/download/@inquirer/password-0.0.15-alpha.0.tgz","fileCount":5,"integrity":"sha512-dV+752Bd6xqHprefa7mXHYLsx9AO48f4E2vKp3UWrwIsvPz7eQg88nMlwXSBhOKcRlPvnugY5IZBlqwSLnRPsQ==","signatures":[{"sig":"MEQCIFX1WH0dU7aV7JY1kAz21IsrB7FSAFQVe6GLPes2VXvOAiALiVAONjhagWgnkGawm3OwuJd0cklzXfvKbmgdjgzkmw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4845,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg7wISCRA9TVsSAnZWagAAZDsP/2kOcW8PfKV2fNAHq/xr\n8IC+sp3YKuzFBCHA77pogyQU1SWhZt+WArsQImWhIoZb7LplB+6EiK2kLCa7\n9oS7DHILt6lxIiv9adjKupMngMWYDK7szAAFAl8ptOwaBps6tu4lEpZKIoQl\nblH2SdIYyV8WPG1YbVoC9BtxeKAy5FAPIw0bmqqLCYCZfCf6/Jh1A/1gZk9G\nEQzTTaFzLi4xFRFavlrakN8FdgOZa9cTRUx3ZnbD0pYWq2pUEip5iw97y8L+\nKghLHqCkM1fZXxkRnhiisiojqJbABoOJOb6xkR6nxLMCN0Jkz8dpJjpZhmh8\n1OTHamNWQ9n6/nNwwvxewl7hHVg9sTEsxHkr5uQWJiJv4NXg6vGrQuu+m1du\nDiPCEQA0OW5RrzzIXrD7fgS5peEV3km+hwYhjr9enpL/8fvNZwBeVegV8fDJ\nyFs24TL4kin3t9guSBuzMT8rnpDkMceJ11cgQTs0AoBjHpQrtpGT0VgNHToc\na/p6YzPS/GNdETXI4DBm304txv93vA7u8T5brptkPjFmAmkjBvH60wiEd8oz\nRCegEKRK0q+sLDWPXjG3da5ULYnR5GcEbedMdyVQfyPAPDd8pNnh/hGWafRq\nLkclxFxiB+T5A43tFmIp/eBq3vuBA6fU08/inwdeNBgnDODWGEvR+1s5qoK+\n3kHZ\r\n=kvu0\r\n-----END PGP SIGNATURE-----\r\n","size":2178,"noattachment":false,"key":"/@inquirer/password/-/@inquirer/password-0.0.15-alpha.0.tgz"},"main":"index.js","gitHead":"9bee59b98465656619e4ee563ddbc466dcf2b4f1","_npmUser":{"name":"sboudrias","email":"admin@simonboudrias.com"},"repository":{"url":"git+https://github.com/SBoudrias/Inquirer.js.git","type":"git"},"_npmVersion":"lerna/4.0.0/node@v14.17.1+x64 (darwin)","description":"Inquirer password prompt","directories":{},"_nodeVersion":"14.17.1","dependencies":{"chalk":"^4.1.1","@inquirer/input":"^0.0.16-alpha.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/password_0.0.15-alpha.0_1626276370460_0.8494047664716422","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":1626276370588,"_cnpm_publish_time":1626276370588,"dist-tags":{"latest":"5.3.0"}}