{"name":"@inquirer/input","version":"0.0.24-alpha.0","keywords":["cli","prompt","command-line","input"],"author":{"name":"Simon Boudrias","email":"admin@simonboudrias.com"},"license":"MIT","_id":"@inquirer/input@0.0.24-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/input/README.md","bugs":{"url":"https://github.com/SBoudrias/Inquirer.js/issues"},"dist":{"shasum":"0abb8a0794994e727a54546cc3c9c8594bb77712","tarball":"http://registry-npm.ywwl.com/@inquirer/input/download/@inquirer/input-0.0.24-alpha.0.tgz","fileCount":5,"integrity":"sha512-f83JLVsQcUvJ4ohVatrSCNOoSG74D9poJ2rkP+sxDNqi+wJ6Dr67lwDFTz2jMs/HOowEsrGP2/DCLCjHZKbdKQ==","signatures":[{"sig":"MEUCIQDwf6DrfTt1rZiAjJFj4aEWCGtd2SR6UWUDMoOzimGwDAIgcA6pG40nScdUH3InZj8SuAXp4KFrbs7NNV515/P2KVE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6838,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi/49+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqXGRAAlo0855RCyHm0z8FBiJeTnBq0W99qgYf8boDP80fHV2CMI1Yb\r\n2TB/BsAzfA7Rh6DkGYbYy8GlcXosKGTlpLQN2Xak4aiD83fSNzgDbt4mE+0M\r\nA70GhUHlG27/yQB6f7pQ0XOxSqyKjA0WJuTTywxQG7f5e5LDNgLS4N1nXlTH\r\nIRZwX88r4EdgIiDE+PUbQ1S/7zMTDho1K7fHYMsYBoJDD1VIN7NO1unhS3BK\r\nisDzk8cjhYFAX8E6GYtD/rEdKGG49Xuk4nZJiBFNYDll54W5gKBUXSo3TYwW\r\naNchIKIr3tMrZ8vxv2SuHR4ihy3I9C9uzMd4roO0gcnFUU1HWA5RwxAlE52k\r\nTLTFHfxdnL4o6/eQMgxGJ+ymSRLvPzH1q6r/mcLdwWWB+HxVc2365sjHJmCk\r\njzzsimM/3koEZwhwcT0D/KXaJ6ASfixxnyMl1yQkTOuWjslCCGh/z5Ju9kOk\r\nkc4E/0/lmuO0dBKDSh5cYAQ4ZJxd5vmF8PcxWHA3kZ8Rib0JF2i0EaDM3OL3\r\n5xOIMhhx/rc/OV2tuaVU5LoklWg0TwbC+mcXsrotltbur0Atjr1kIQo6eaBi\r\nXR8QPubUibqvUchlWeVobGgY58tMl1hNrdexhscuSmuS1nhMwA7fqHQCoG8e\r\n1QQ0V6Zy1uKn7f5xJKao2az/EvVkyDLdNa8=\r\n=sZjJ\r\n-----END PGP SIGNATURE-----\r\n","size":2836,"noattachment":false,"key":"/@inquirer/input/-/@inquirer/input-0.0.24-alpha.0.tgz"},"main":"dist/index.js","type":"module","gitHead":"0e054fd0b58bf56e94088136dfd36b74246a5187","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.3.0/node@v18.4.0+x64 (darwin)","description":"Inquirer input text prompt","directories":{},"_nodeVersion":"18.4.0","dependencies":{"chalk":"^5.0.1","@inquirer/core":"^0.0.24-alpha.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/input_0.0.24-alpha.0_1660915581999_0.1237040519972783","host":"s3://npm-registry-packages"},"readme":"# `@inquirer/input`\n\nInteractive free text input component for command line interfaces. Supports validation, filtering, transformation, etc.\n\n![Input prompt](https://cdn.rawgit.com/SBoudrias/Inquirer.js/28ae8337ba51d93e359ef4f7ee24e79b69898962/assets/screenshots/input.svg)\n\n# Installation\n\n```sh\nnpm install @inquirer/input\n\nyarn add @inquirer/input\n```\n\n# Usage\n\n```js\nimport input from '@inquirer/input';\n\nconst answer = await input({ message: 'Enter your name' });\n```\n\n## Options\n\n| Property    | Type                                                        | Required | Description                                                                                                                                                                                                             |\n| ----------- | ----------------------------------------------------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| message     | `string`                                                    | yes      | The question to ask                                                                                                                                                                                                     |\n| default     | `string`                                                    | no       | Default value if no answer is provided (clear it by pressing backspace)                                                                                                                                                 |\n| transformer | `(string, { isFinal: boolean }) => string`                  | no       | Transform/Format the raw value entered by the user. Once the prompt is completed, `isFinal` will be `true`. This function is purely visual, modify the answer in your code if needed.                                   |\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    defaultAnswer: (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":1660915582154,"_cnpm_publish_time":1660915582154,"dist-tags":{"latest":"5.2.0"}}