{"id":22154172,"url":"https://github.com/ppeeou/alert-window","last_synced_at":"2025-03-24T14:16:50.374Z","repository":{"id":85407591,"uuid":"160040561","full_name":"ppeeou/alert-window","owner":"ppeeou","description":"alert, confirm custom basic","archived":false,"fork":false,"pushed_at":"2018-12-02T11:38:33.000Z","size":46,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-29T19:11:59.839Z","etag":null,"topics":["alert","confirm","js"],"latest_commit_sha":null,"homepage":"https://ppeeou.github.io/alert-window/","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/ppeeou.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-02T11:31:15.000Z","updated_at":"2018-12-03T10:29:36.000Z","dependencies_parsed_at":"2023-03-05T23:30:28.178Z","dependency_job_id":null,"html_url":"https://github.com/ppeeou/alert-window","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppeeou%2Falert-window","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppeeou%2Falert-window/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppeeou%2Falert-window/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ppeeou%2Falert-window/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ppeeou","download_url":"https://codeload.github.com/ppeeou/alert-window/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245284732,"owners_count":20590307,"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":["alert","confirm","js"],"created_at":"2024-12-02T01:41:37.627Z","updated_at":"2025-03-24T14:16:50.331Z","avatar_url":"https://github.com/ppeeou.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Alert\nThis library provides the user with custom alert and confirm functions.\n(study, use custom)\n\nexample\n```\nnpm run build\nnpm run server\n```\n\n- promise\n- async \u0026 await\n\n### Promise\nAlert\n```\nAlertWindow\n    .alert('alert message')\n    .then(()=\u003e ...)\n    .catch((error)=\u003e ...)\n\nAlertWindow\n    .alert({\n        title:'alert title',\n        text :'alert text'\n    })\n    .then(()=\u003e ...)\n    .catch((error)=\u003e ...)\n```\n\nConfirm\n```\nAlertWindow\n    .confirm('confirm message')\n    .then((isOk)=\u003e {\n        if(isOk){\n        ...\n        }else {\n        ...\n        }\n    })\n    .catch((error)=\u003e ...)\n\nAlertWindow\n    .confirm({\n        title:'confirm title',\n        text :'confirm text'\n    })\n    .then((isOk)=\u003e {\n        if(isOk){\n        ...\n        }else {\n        ...\n        }\n    })\n    .catch((error)=\u003e ...)\n```\n\n### Async \u0026 await\n```\nawait AlertWindow.alert('alert message')\n```\n\n```\nconst isOk = await AlertWindow.confirm('confirm message')\n\nif(isOk){\n    ...\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppeeou%2Falert-window","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fppeeou%2Falert-window","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fppeeou%2Falert-window/lists"}