{"name":"@inquirer/password","version":"5.2.1","keywords":["answer","answers","ask","base","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@5.2.1","maintainers":[{"name":"sboudrias","email":"admin@simonboudrias.com"},{"name":"mischah","email":"mail@michael-kuehnel.de"}],"homepage":"https://github.com/SBoudrias/Inquirer.js/blob/main/packages/password/README.md","bugs":{"url":"https://github.com/SBoudrias/Inquirer.js/issues"},"dist":{"shasum":"a1917f5269a7c4cfbf29c4085ad611931786faf6","tarball":"http://registry-npm.ywwl.com/@inquirer/password/download/@inquirer/password-5.2.1.tgz","fileCount":5,"integrity":"sha512-InA6nJxMCXPavPBiTKYHIsYiWz/mkIsk1rkI6pKp5w18gVawqrZOj7eSzSmPJa3j0pVxXm6RlrFP1BE9YeOixA==","signatures":[{"sig":"MEUCIQDtPqHx0F6vvPBCSFpNoe/jNxEZXUTxwpyrguOreMjb4wIgf1aQozFhZO+net71tuUU+kQYqJa1b+rb6MIEBkLf/CU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@inquirer%2fpassword@5.2.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":10954,"size":4071,"noattachment":false,"key":"/@inquirer/password/-/@inquirer/password-5.2.1.tgz"},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=23.5.0 || ^22.13.0 || ^20.17.0"},"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"./package.json":"./package.json"},"gitHead":"5748bd9966b5e175ddf5995ee4cdce6f60c4272e","scripts":{"tsc":"tsc"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","approver":{"name":"sboudrias","email":"admin@simonboudrias.com"},"trustedPublisher":{"id":"github","oidcConfigId":"oidc:aeb0e1cb-fa08-4a91-824c-4b70e38c955c"}},"repository":{"url":"git+https://github.com/SBoudrias/Inquirer.js.git","type":"git"},"_npmVersion":"lerna/5.6.0/node@v24.19.0+x64 (linux)","description":"Inquirer password prompt","directories":{},"sideEffects":false,"_nodeVersion":"24.19.0","dependencies":{"@inquirer/ansi":"^2.0.8","@inquirer/core":"^12.0.2","@inquirer/type":"4.1.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^6.0.2","@repo/tsconfig":"0.0.0"},"peerDependencies":{"@types/node":">=18"},"peerDependenciesMeta":{"@types/node":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/password_5.2.1_1788386036470_0.06711519107560027","host":"s3://npm-registry-packages-npm-production"},"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<table>\n<tr>\n  <th>npm</th>\n  <th>yarn</th>\n</tr>\n<tr>\n<td>\n\n```sh\nnpm install @inquirer/prompts\n```\n\n</td>\n<td>\n\n```sh\nyarn add @inquirer/prompts\n```\n\n</td>\n</tr>\n<tr>\n<td colSpan=\"2\" align=\"center\">Or</td>\n</tr>\n<tr>\n<td>\n\n```sh\nnpm install @inquirer/password\n```\n\n</td>\n<td>\n\n```sh\nyarn add @inquirer/password\n```\n\n</td>\n</tr>\n</table>\n\n# Usage\n\n```js\nimport { password } from '@inquirer/prompts';\n// Or\n// import 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 \\| string`                                         | no       | Show a `*` mask over the input, use a custom mask character, or keep it transparent.                                                                                                                                    |\n| toggleMask | `boolean`                                                   | no       | Allow the user to press `ctrl+t` to temporarily reveal the typed value. Defaults to `true`; set to `false` to disable both the shortcut and its help line.                                                              |\n| validate   | `string => boolean \\| string \\| Promise<boolean \\| string>` | 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 | { idle: string; done: string };\n  spinner: {\n    interval: number;\n    frames: string[];\n  };\n  style: {\n    answer: (text: string) => string;\n    message: (text: string, status: 'idle' | 'done' | 'loading') => string;\n    error: (text: string) => string;\n    help: (text: string) => string;\n    maskedText: string;\n    keysHelpTip: (keys: [key: string, action: string][]) => string | undefined;\n  };\n};\n```\n\n`maskedText` is the inline tip shown when `mask` is off and the value is hidden (default: `[input is masked]`).\n\n### `theme.style.keysHelpTip`\n\nThis function customizes the keyboard shortcut help displayed on the line below the prompt. It receives `[['ctrl+t', 'toggle visibility']]` while the value is hidden. Use it to change the formatting or localize the action, or return `undefined` to hide the help line entirely.\n\n```js\ntheme: {\n  style: {\n    keysHelpTip: (keys) =>\n      keys.map(([key, action]) => `${key}: ${action}`).join(' | '),\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":1788386036572,"_cnpm_publish_time":1788386036572,"dist-tags":{"latest":"5.3.0"}}