{"_id":"@inquirer/password@5.2.0","bugs":{"url":"https://github.com/SBoudrias/Inquirer.js/issues"},"dist":{"shasum":"002db941c99ab3fa10b624d18decc3ee3400461c","tarball":"http://registry-npm.ywwl.com/@inquirer/password/download/@inquirer/password-5.2.0.tgz","integrity":"sha512-CvVcW09emkBESEOW+4R8CjLNkP3fB3XrjeL8CDvfpjgrJN+V9oerXmJAXXM3l+4xqYPD5Yaujzy/Ph0PLOdDuA==","fileCount":5,"unpackedSize":10955,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@inquirer%2fpassword@5.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCdPy3y2iSLL7uayvFv8aDaxugMGrfoIgS8eOHbuVHWgwIgY1guWlaGpYBGs5eRDwciTU+ZGQu5/S4A6JXp5Uxp3XQ="}],"size":4070,"noattachment":false,"key":"/@inquirer/password/-/@inquirer/password-5.2.0.tgz"},"main":"./dist/index.js","name":"@inquirer/password","type":"module","types":"./dist/index.d.ts","author":{"name":"Simon Boudrias","email":"admin@simonboudrias.com"},"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":"51ac389603405e8f9f315ce49416153d95c5fefe","license":"MIT","scripts":{"tsc":"tsc"},"version":"5.2.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:aeb0e1cb-fa08-4a91-824c-4b70e38c955c"},"approver":{"name":"sboudrias","email":"admin@simonboudrias.com"}},"homepage":"https://github.com/SBoudrias/Inquirer.js/blob/main/packages/password/README.md","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"],"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":{},"maintainers":[{"name":"sboudrias","email":"admin@simonboudrias.com"},{"name":"mischah","email":"mail@michael-kuehnel.de"}],"sideEffects":false,"_nodeVersion":"24.19.0","dependencies":{"@inquirer/ansi":"^2.0.7","@inquirer/core":"^12.0.1","@inquirer/type":"^4.1.0"},"publishConfig":{"access":"public"},"devDependencies":{"typescript":"^6.0.2","@repo/tsconfig":"0.0.0"},"peerDependencies":{"@types/node":">=18"},"peerDependenciesMeta":{"@types/node":{"optional":true}},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/password_5.2.0_1787785509642_0.5807534502724796"},"_hasShrinkwrap":false,"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":1787785509744,"_cnpm_publish_time":1787785509744,"dist-tags":{"latest":"5.3.0"}}