{"id":21817924,"url":"https://github.com/iansu/node-prompts","last_synced_at":"2026-05-17T22:32:29.902Z","repository":{"id":70309728,"uuid":"604366318","full_name":"iansu/node-prompts","owner":"iansu","description":"A POC of a Node.js implementation of the Web APIs for alert, confirm and prompt","archived":false,"fork":false,"pushed_at":"2023-02-20T22:59:24.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-21T10:23:42.908Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/iansu.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-02-20T22:54:13.000Z","updated_at":"2023-02-22T00:06:37.000Z","dependencies_parsed_at":"2023-02-27T05:00:18.316Z","dependency_job_id":null,"html_url":"https://github.com/iansu/node-prompts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/iansu/node-prompts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iansu%2Fnode-prompts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iansu%2Fnode-prompts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iansu%2Fnode-prompts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iansu%2Fnode-prompts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iansu","download_url":"https://codeload.github.com/iansu/node-prompts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iansu%2Fnode-prompts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33157500,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-11-27T15:49:06.367Z","updated_at":"2026-05-17T22:32:29.885Z","avatar_url":"https://github.com/iansu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node Prompts\n\nA POC of a Node.js implementation of the Web APIs for alert, confirm and prompt\n\n## Usage\n\n### Alert\n\n```js\nawait alert('Please confirm');\n```\n\n### Confirm\n\n```js\nconst result = await confirm('Are you sure?');\n\nif (result) {\n  // do something\n}\n```\n\n### Prompt\n\n```js\n// prompt with no default value\nconst result = await prompt('What is your name?');\nconsole.log(result);\n\n// prompt with a default value\nconst resultWithDefault = await prompt('What is your age?', 18);\nconsole.log(resultWithDefault);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiansu%2Fnode-prompts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiansu%2Fnode-prompts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiansu%2Fnode-prompts/lists"}