{"name":"@inquirer/password","version":"0.0.5-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.5-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":"0f0f8afa5069bb8393eebef20e71d51866e69a29","tarball":"http://registry-npm.ywwl.com/@inquirer/password/download/@inquirer/password-0.0.5-alpha.0.tgz","fileCount":4,"integrity":"sha512-0HCFamaiOmr/vGGVfe7Rd3teohEcvElZjHlcBTdlQfHVSDsMI1GN4fBWRnhiqCCx5AtCOQsTiGx9F99pl02M8w==","signatures":[{"sig":"MEQCIH3pNtxJhoTj0qAPiwVhvcm/od022KMWpZPC0QpXoB0iAiBn04cy/OZEPnDD/Vn/lWy0rjSrbhoqFbRVBpwZeWqPGw==","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\nwsFcBAEBCAAQBQJdJr89CRA9TVsSAnZWagAAeZIP/i8p6DJ4qTXjjebJ7E0T\ne8lifJsYbmMg40AUqW54HHwDmm/80+wfcHxyyhzPZxq9UdGTaLvFUqc5lpyu\nwbCSJuoCGa4tJs73LG9gU1Xxb1AdVdtEQ5b8VLbMHZyxbn4cejZ/V/rcGbFV\nV6F9vF4emNnA0ddhTpKDVN3wROH0uRonpWyQTFFL9mQLD4cgPfUI4OGs9PFA\nE2jDRJ6iSn1jSYZGZ4zjk664HJ48wY4qdBsXk2GbssAsyvumXuib12LmXT4V\ni3RtjaiGLQq1z5zj7nfYcF98NrWszAQhS+YMIKHnWJxSa9HYxktgooLMSdnd\nzzru13bwXnSBTp/zboIbmLJKpnRrsErEi3OFbo+vc8W2MKWDxFs45NsNkBor\nvCbM1zP1YVazvRhTVJpEDeZ7zR3ZpbPG86JHoJuZzZ65E9giXSOPWxi8JOXO\nShDa0xT6Rkbw0eEzTGdazYU//Yelo4W9upo/CRagtdo+3m2t7GEkGIaheur/\nBkDwhNSuNnraPzMmllYId87rnUIaecSnsVSjaOWhpuUYHy9eL0bw7NnUPb6t\nEYtt877ZMcfupymEnGrHV4j52Sn9UrtSsbNmqfcjgoK2RuEvMIVP9kX5AwOp\n7Um4mR/qI73Wct+Jie96aYsb0z1/sDKxdjFNf12z0KXCCCZXZdzHQRsFeWMi\nUma7\r\n=YqgY\r\n-----END PGP SIGNATURE-----\r\n","size":1598,"noattachment":false,"key":"/@inquirer/password/-/@inquirer/password-0.0.5-alpha.0.tgz"},"main":"index.js","gitHead":"da5d0e22de84486240b12f52643fbd573f8d0d38","_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@v12.4.0+x64 (darwin)","description":"Inquirer password prompt","directories":{},"_nodeVersion":"12.4.0","dependencies":{"chalk":"^2.4.1","@inquirer/input":"^0.0.6-alpha.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/password_0.0.5-alpha.0_1562820413034_0.8373067770154028","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":1562820413159,"_cnpm_publish_time":1562820413159,"dist-tags":{"latest":"5.3.0"}}