{"name":"@inquirer/password","version":"0.0.25-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.25-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":"b1666bd5671e8feebf8bd7690c271435f0c81d91","tarball":"http://registry-npm.ywwl.com/@inquirer/password/download/@inquirer/password-0.0.25-alpha.0.tgz","fileCount":5,"integrity":"sha512-18rxEWT0Rv1v3jVCXNBMGeOy6fdtyJcOumcdUuaYwYqGndXRlNAl+Gf53pG+bhcxWrFBD7gxlzvocd5qGrbfvA==","signatures":[{"sig":"MEUCIQCPK57i35NLwAVIIyS+9IttySRujjPRx2t2WC/KXNo5CQIgMNpR7Yw9gjxp3HAXC1C4XfcuSoGiPSHmtf+5Ey8e9uc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4921,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjD6m+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoLPRAAjqE8MIs95fPXsGN05LuCgplrIS1jMGPjrORkl9WvAumR5QNO\r\nmeO5kaludMtQXxL5V34h3tmGbkQtNPmbZGexpjzW+0MwA1i9fBe5WCD5tBo8\r\nhNAXugZgrteq8EwTT5y5gn14NdLcQfX2bhAdj0MRkFuFOS2kJ4C0RrJ1fENL\r\nAmFNkIIN1iZi/0O9NpBHnjsvRemRFDf+wuQqh0RqGA+tKvznuOS1Zo9muwbT\r\n0FUuEMJQjmfO+lbBVb013bmN10r51lEM7znaeyCO9fAjjj+clv7dtoVlpk26\r\n4E03IZeSu871OJOyVrP3enLwQRpdbAC7KOwlpMlkOV6lH4zPfEn1wFmFHC51\r\nf4VG4Y7lF1lzDHO9aVfry/a5BBVvnDGMEu8BxkK2s7z99v03E+XTKSnBbp+j\r\n+LfAvBqJ3PFxxUxhD/dgdxcSbRvpetpTKkndW5uJNdsFOWfcmCoTUXSu/7MH\r\neHm5BaOuibahOkU26mt7bIO81Hbes4ZlSjAhcB2Vk1+jv622ki2XdsNE/GbU\r\n8yHISanj0fYYdHoovhjq8/WZTYMAosff9ed3Y6Brjy9L54Xs4XmbpIL8KNCx\r\ndYIzVyCOCOIwo3IE421plzgLvLWmVPdC14Wl7ipmSBVdOxMMCUgcDofybsfH\r\ndBUfM5Kkz12eL4mud7irStXVOe1vlxpw3vg=\r\n=efM3\r\n-----END PGP SIGNATURE-----\r\n","size":2202,"noattachment":false,"key":"/@inquirer/password/-/@inquirer/password-0.0.25-alpha.0.tgz"},"main":"dist/index.js","type":"module","gitHead":"6e0a7e28b5ac9fc526cf787e0b6c53cb44bd7ae3","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/5.4.3/node@v18.4.0+x64 (darwin)","description":"Inquirer password prompt","directories":{},"_nodeVersion":"18.4.0","dependencies":{"chalk":"^5.0.1","@inquirer/input":"^0.0.26-alpha.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/password_0.0.25-alpha.0_1661970878668_0.7137833307739778","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":1661970878880,"_cnpm_publish_time":1661970878880,"dist-tags":{"latest":"5.3.0"}}