{"name":"@inquirer/input","version":"0.0.7-alpha.0","keywords":["cli","prompt","command-line","input"],"author":{"name":"Simon Boudrias","email":"admin@simonboudrias.com"},"license":"MIT","_id":"@inquirer/input@0.0.7-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":"d5fc70050a3de56fa940699491ca7a7d8211431c","tarball":"http://registry-npm.ywwl.com/@inquirer/input/download/@inquirer/input-0.0.7-alpha.0.tgz","fileCount":7,"integrity":"sha512-cFmWRpptVygvu4G2NlW+q5gZIa39cNft9IT6X5CSCuugUQpPPuwoODFFOn+wriblWOxRisUT7wONKtuhxz3clQ==","signatures":[{"sig":"MEUCIQDI7Ew0ugh9dfwKx+68w5VyjvNtXVWfz/MYyCr/+1Fm4AIgAlq5Ryu75lsYLE0Z9Mztoo5w4uEWevfwwexNNAww9/8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8853,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdUEZjCRA9TVsSAnZWagAAGAQP/1XvDBUoBGzngtdMo8Zj\nyyc0eHL92rbGxmoJujbUjL3hgOjG1G4OjVrbLQaZlP6J4EfPqwguc0msirhZ\nDleZE9lfwtmfqIFkdD+Ab3RNUI4ZAx4q2Gi8PE9p0IgIZ3Ikl38MxxM/AcdE\npp3iLj6SA3alTV7wuqdyRyCrgOMQkO4J6izas2E6no8WDMBtwbhzJYfHQcFX\nblsRHcnNbpP4DzaKzyJJ61oF4lrVfvVxPwZQ+ROEKTrlk9sOEK7AC/UD/9J+\nydA+1+cZRRlsDPu+bsGQZGlVIjiMT1TA/Zr+bneg+GL32TH04Jaki+8rQp3W\n08OVdNBHivt/8dVP3cL0hcWr2Iege07WRvHG7SLcNTHvMo1RPMR/X7wTcqIZ\nW2k4BEg6luk86vDsRVFChrZI2bCrDAuj/qqZnD1t5tsAUt+pNwVTVt5H94f4\nB2fir1zC14YhJ/cx/OeyBJATyJw1gXJnNR7CcszKYlDMp+p6o7ZHmx866bgc\nP5LuSywzc0a79PiKVRhcgTgygVDYyDBiTItUoXP6FqBflmAo20EETLZjwUSv\n5coQtlA1Eg50bzhYxjichSEzttzATP2CUZn0mh5NQJXSDfg0h+6SFodhFBaT\nBbwVf7iHjDLmcrwp9f9Z5SnHwIebTrDxjdTSBUyet+AUw/bA0P7pCqEJtqb7\nhrcX\r\n=TnGH\r\n-----END PGP SIGNATURE-----\r\n","size":3186,"noattachment":false,"key":"/@inquirer/input/-/@inquirer/input-0.0.7-alpha.0.tgz"},"main":"index.js","gitHead":"54285c75bc7986e0e2c7bcd2bc8ae4ddd6f05929","_npmUser":{"name":"sboudrias","email":"admin@simonboudrias.com"},"repository":{"url":"git+https://github.com/SBoudrias/Inquirer.js.git","type":"git"},"_npmVersion":"lerna/3.16.4/node@v12.8.0+x64 (darwin)","description":"Inquirer input text prompt","directories":{},"_nodeVersion":"12.8.0","dependencies":{"chalk":"^2.4.1","@inquirer/core":"^0.0.7-alpha.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/input_0.0.7-alpha.0_1565541986883_0.12988301928824453","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":1565541987018,"_cnpm_publish_time":1565541987018,"dist-tags":{"latest":"5.2.0"}}