{"id":15361927,"url":"https://github.com/tj/co-prompt","last_synced_at":"2025-04-13T18:23:15.204Z","repository":{"id":9596991,"uuid":"11517362","full_name":"tj/co-prompt","owner":"tj","description":"sane terminal user-input for node.js using thunks / generators","archived":false,"fork":false,"pushed_at":"2016-03-25T00:12:57.000Z","size":112,"stargazers_count":192,"open_issues_count":10,"forks_count":19,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-27T09:11:28.520Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tj.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-07-19T01:08:04.000Z","updated_at":"2024-07-06T03:30:01.000Z","dependencies_parsed_at":"2022-08-18T06:37:02.075Z","dependency_job_id":null,"html_url":"https://github.com/tj/co-prompt","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tj%2Fco-prompt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tj%2Fco-prompt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tj%2Fco-prompt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tj%2Fco-prompt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tj","download_url":"https://codeload.github.com/tj/co-prompt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248759141,"owners_count":21157098,"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":[],"created_at":"2024-10-01T12:57:26.696Z","updated_at":"2025-04-13T18:23:15.181Z","avatar_url":"https://github.com/tj.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# co-prompt\n\n  Sane terminal user-input for nodejs that return thunks for [co](https://github.com/visionmedia/co).\n\n## Installation\n\n```\n$ npm install co-prompt\n```\n\n## Examples\n\n```js\nvar name = yield prompt('username: ');\nvar pass = yield password('password: ');\nvar desc = yield multiline('description: ');\nvar ok = yield confirm('are you sure? ');\n```\n\n## API\n\n### prompt(msg)\n\n  Prompt for user input with `msg`.\n\n### prompt.password(msg, [mask])\n\n  Prompt for password input with `msg` and optional `mask`\n  defaulting to \"*\".\n\n### prompt.multiline(msg)\n\n  Prompt for multi-line input with `msg`.\n\n### prompt.confirm(msg)\n\n  Prompt for confirmation with `msg`.\n\n## License\n\n  MIT\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftj%2Fco-prompt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftj%2Fco-prompt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftj%2Fco-prompt/lists"}