{"id":19171147,"url":"https://github.com/osmanmesutozcan/inquirer-confirm-warning","last_synced_at":"2026-07-01T17:31:29.368Z","repository":{"id":57274388,"uuid":"80268600","full_name":"osmanmesutozcan/inquirer-confirm-warning","owner":"osmanmesutozcan","description":"Custom confirm inquerer prompt that warns if the condition is met.","archived":false,"fork":false,"pushed_at":"2017-01-28T06:50:33.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-08T17:00:09.893Z","etag":null,"topics":["inquirer","plop","warning"],"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/osmanmesutozcan.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":"2017-01-28T05:36:41.000Z","updated_at":"2017-01-28T15:35:00.000Z","dependencies_parsed_at":"2022-09-17T10:13:07.984Z","dependency_job_id":null,"html_url":"https://github.com/osmanmesutozcan/inquirer-confirm-warning","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/osmanmesutozcan/inquirer-confirm-warning","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osmanmesutozcan%2Finquirer-confirm-warning","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osmanmesutozcan%2Finquirer-confirm-warning/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osmanmesutozcan%2Finquirer-confirm-warning/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osmanmesutozcan%2Finquirer-confirm-warning/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/osmanmesutozcan","download_url":"https://codeload.github.com/osmanmesutozcan/inquirer-confirm-warning/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osmanmesutozcan%2Finquirer-confirm-warning/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35017089,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-01T02:00:05.325Z","response_time":130,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["inquirer","plop","warning"],"created_at":"2024-11-09T09:57:16.398Z","updated_at":"2026-07-01T17:31:29.350Z","avatar_url":"https://github.com/osmanmesutozcan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\t\u003cb\u003eCustom confirm prompt for \u003ca href=\"https://github.com/SBoudrias/Inquirer.js\"\u003einquirer\u003c/a\u003e that warns if the conditions are met.\u003c/b\u003e\n\t\u003cbr\u003e\u003cbr\u003e\n\t\u003cimg src=\"http://i.giphy.com/26gsiiMS8jcLUDVlu.gif\"\u003e\n\u003c/p\u003e\n\n### Installation\n```\nnpm install inquirer-confirm-warning\n```\n\n```\ninquirer.registerPrompt('warning', require('inquirer-confirm-warning'));\n```\nIf using with [plop](https://github.com/amwmedia/plop) then in your plop config:\n\n```\nplop.addPrompt('warning', require('inquirer-confirm-warning'));\n```\n\n### Examples\n\nYou can see it in action.\n\nGet to the examples folder and run:\n\n```\nnode example/simple_example.js\n```\n\n### Usage\n\nTake `type`, `name`, `message`, `[default: Bool, warnif: Bool, warning: String]` properties.\n\nTakes [chalk](https://github.com/chalk/chalk) color names (e.g `white`, `yellow`, `red`).\n\n\n\n```\ninquirer.prompt({\n  type: 'warning',\n  message: message\n  warning: 'Some sort of warning!',\n  color: 'yellow',\n  warnif: true\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosmanmesutozcan%2Finquirer-confirm-warning","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fosmanmesutozcan%2Finquirer-confirm-warning","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosmanmesutozcan%2Finquirer-confirm-warning/lists"}