{"id":20206817,"url":"https://github.com/enquirer/prompt-input","last_synced_at":"2025-04-10T12:33:10.465Z","repository":{"id":57225581,"uuid":"66800243","full_name":"enquirer/prompt-input","owner":"enquirer","description":"This repository has been archived, use the built-in input prompt in Enquirer instead.","archived":false,"fork":false,"pushed_at":"2017-09-10T23:17:16.000Z","size":662,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-04T11:38:29.694Z","etag":null,"topics":["ask","command-line","enquirer","input","prompt","question","terminal","text"],"latest_commit_sha":null,"homepage":"https://github.com/enquirer/enquirer","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/enquirer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-29T01:14:24.000Z","updated_at":"2021-04-09T14:57:00.000Z","dependencies_parsed_at":"2022-09-05T10:10:30.966Z","dependency_job_id":null,"html_url":"https://github.com/enquirer/prompt-input","commit_stats":null,"previous_names":["enquirer/enquirer-prompt-input","enquirer/prompt-text"],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enquirer%2Fprompt-input","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enquirer%2Fprompt-input/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enquirer%2Fprompt-input/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enquirer%2Fprompt-input/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enquirer","download_url":"https://codeload.github.com/enquirer/prompt-input/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248217126,"owners_count":21066633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ask","command-line","enquirer","input","prompt","question","terminal","text"],"created_at":"2024-11-14T05:26:12.482Z","updated_at":"2025-04-10T12:33:10.424Z","avatar_url":"https://github.com/enquirer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# prompt-input [![NPM version](https://img.shields.io/npm/v/prompt-input.svg?style=flat)](https://www.npmjs.com/package/prompt-input) [![NPM monthly downloads](https://img.shields.io/npm/dm/prompt-input.svg?style=flat)](https://npmjs.org/package/prompt-input)  [![NPM total downloads](https://img.shields.io/npm/dt/prompt-input.svg?style=flat)](https://npmjs.org/package/prompt-input) [![Linux Build Status](https://img.shields.io/travis/enquirer/prompt-input.svg?style=flat\u0026label=Travis)](https://travis-ci.org/enquirer/prompt-input) [![Windows Build Status](https://img.shields.io/appveyor/ci/enquirer/prompt-input.svg?style=flat\u0026label=AppVeyor)](https://ci.appveyor.com/project/enquirer/prompt-input)\n\n\u003e Basic text input prompt. This can be used standalone, but it's also included in [enquirer] by default.\n\n![prompt-input example](https://raw.githubusercontent.com/enquirer/prompt-input/master/example.gif)\n\n## Install\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save prompt-input\n```\n\n## Usage\n\n```js\nvar Input = require('prompt-input');\nvar input = new Input({\n  name: 'first',\n  message: 'What is your name?'\n});\n\n// async\ninput.ask(function(answers) {\n  console.log(answers);\n});\n\n// promise\ninput.run()\n  .then(function(answers) {\n    console.log(answers);\n  });\n```\n\n## Enquirer usage\n\nThere is no need to register this with [enquirer][], as this is the only prompt type included in enquirer by default.\n\n## About\n### Related projects\n- [enquirer](https://www.npmjs.com/package/enquirer): Intuitive, plugin-based prompt system for node.js. | [homepage](http://enquirer.io \"Intuitive, plugin-based prompt system for node.js.\")\n- [prompt-base](https://www.npmjs.com/package/prompt-base): Base prompt module used for creating custom prompts. | [homepage](https://github.com/enquirer/prompt-base \"Base prompt module used for creating custom prompts.\")\n- [prompt-checkbox](https://www.npmjs.com/package/prompt-checkbox): Multiple-choice/checkbox prompt. Can be used standalone or with a prompt system like [Enquirer]. | [homepage](https://github.com/enquirer/prompt-checkbox \"Multiple-choice/checkbox prompt. Can be used standalone or with a prompt system like [Enquirer].\")\n- [prompt-confirm](https://www.npmjs.com/package/prompt-confirm): Confirm (yes/no) prompt. Can be used standalone or with a prompt system like [Enquirer]. | [homepage](https://github.com/enquirer/prompt-confirm \"Confirm (yes/no) prompt. Can be used standalone or with a prompt system like [Enquirer].\")\n- [prompt-input](https://www.npmjs.com/package/prompt-input): Basic text input prompt. This can be used standalone, but it's also included in [enquirer… [more](https://github.com/enquirer/prompt-input) | [homepage](https://github.com/enquirer/prompt-input \"Basic text input prompt. This can be used standalone, but it's also included in [enquirer] by default.\")\n- [prompt-list](https://www.npmjs.com/package/prompt-list): List-style prompt. Can be used as a standalone prompt, or with a prompt system like… [more](https://github.com/enquirer/prompt-list) | [homepage](https://github.com/enquirer/prompt-list \"List-style prompt. Can be used as a standalone prompt, or with a prompt system like [enquirer].\")\n- [prompt-sort](https://www.npmjs.com/package/prompt-sort): Prompt that allows the user to re-order items in a list of choices. | [homepage](https://github.com/enquirer/prompt-sort \"Prompt that allows the user to re-order items in a list of choices.\")\n\n### Contributing\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Running tests\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install \u0026\u0026 npm test\n```\n\n### Author\n**Jon Schlinkert**\n\n+ [github/jonschlinkert](https://github.com/jonschlinkert)\n+ [twitter/jonschlinkert](https://twitter.com/jonschlinkert)\n\n### License\nCopyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on September 10, 2017._\n\n[enquirer]: http://enquirer.io","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenquirer%2Fprompt-input","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenquirer%2Fprompt-input","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenquirer%2Fprompt-input/lists"}