{"id":24364193,"url":"https://github.com/bgaze/bootstrap4-dialogs","last_synced_at":"2025-07-03T17:02:05.492Z","repository":{"id":57155464,"uuid":"175815970","full_name":"bgaze/bootstrap4-dialogs","owner":"bgaze","description":"A tiny and flexible collection of dialogs based on Bootstrap 4 modals","archived":false,"fork":false,"pushed_at":"2020-06-01T03:34:41.000Z","size":135,"stargazers_count":8,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-17T21:51:16.738Z","etag":null,"topics":["alert","bootstrap4","confirm","dialogs","prompt"],"latest_commit_sha":null,"homepage":"https://packages.bgaze.fr/bootstrap4-dialogs","language":"HTML","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/bgaze.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":"2019-03-15T12:26:42.000Z","updated_at":"2023-12-20T01:13:43.000Z","dependencies_parsed_at":"2022-08-26T09:31:22.473Z","dependency_job_id":null,"html_url":"https://github.com/bgaze/bootstrap4-dialogs","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/bgaze/bootstrap4-dialogs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgaze%2Fbootstrap4-dialogs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgaze%2Fbootstrap4-dialogs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgaze%2Fbootstrap4-dialogs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgaze%2Fbootstrap4-dialogs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bgaze","download_url":"https://codeload.github.com/bgaze/bootstrap4-dialogs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgaze%2Fbootstrap4-dialogs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262748310,"owners_count":23358162,"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","bootstrap4","confirm","dialogs","prompt"],"created_at":"2025-01-18T23:51:33.035Z","updated_at":"2025-07-03T17:02:05.444Z","avatar_url":"https://github.com/bgaze.png","language":"HTML","readme":"# Bootstrap 4 dialogs\n\n[![GitHub license](https://img.shields.io/github/license/bgaze/bootstrap4-dialogs)](https://github.com/bgaze/bootstrap4-dialogs/blob/master/LICENSE)\n![Maintenance](https://img.shields.io/maintenance/yes/2020)\n[![GitHub release (latest by date)](https://img.shields.io/github/v/release/bgaze/bootstrap4-dialogs)](https://github.com/bgaze/bootstrap4-dialogs/releases)\n[![GitHub stars](https://img.shields.io/github/stars/bgaze/bootstrap4-dialogs)](https://github.com/bgaze/bootstrap4-dialogs/stargazers)\n[![npm](https://img.shields.io/npm/dt/bgaze-bootstrap4-dialogs)](https://www.npmjs.com/package/bgaze-bootstrap4-dialogs)\n\n![bootstrap4-dialogs](./readme.png)\n\nBSD is a tiny and flexible collection of dialog popups based on Bootstrap 4 modals.  \nCustom dialogs can be easily defined, in addition to built-in ones (alert, confirm and prompt).\n\n## Documentation\n\nFull documentation and examples are available at [https://packages.bgaze.fr/bootstrap4-dialogs](https://packages.bgaze.fr/bootstrap4-dialogs)\n\n## Quick start\n\nBSD requires jQuery v1.9+ and Bootstrap 4 modal component.\n\nSeveral quick start options are available:\n\n*   Install with npm: `npm i bgaze-bootstrap4-dialogs`\n*   Install with yarn: `yarn add bgaze-bootstrap4-dialogs`\n*   Install via CDN: `https://cdn.jsdelivr.net/gh/bgaze/bootstrap4-dialogs@2/dist/bootstrap4-dialogs.min.js`\n*   Install with Composer: `composer require bgaze/bootstrap4-dialogs`\n*   Download the latest release: [https://github.com/bgaze/bootstrap4-dialogs/releases](https://github.com/bgaze/bootstrap4-dialogs/releases)\n*   Clone the repo: `git clone https://github.com/bgaze/bootstrap4-dialogs.git`\n\nJust make sure to include required dependencies into your app, then include the library:\n\n*   If installed as a module, import it: `const bsd = require(\"bgaze-bootstrap4-dialogs\");`\n*   Otherwise include the script into your page: `\u003cscript src=\"path/to/bootstrap4-dialogs.js\"\u003e\u003c/script\u003e`\n\nThat's it! Now you can use the globally declared `bsd` object.\n\n```javascript\n// Alert\nbsd.alert('Lorem ipsum dolor sit amet');\n\n// Confirm\nbsd.confirm('Lorem ipsum dolor sit amet', function (confirmed) {\n    if (confirmed) {\n        // ...\n    }\n});\n\n// Prompt\nbsd.prompt('Lorem ipsum dolor sit amet', function (value) {\n    if (value !== null) {\n        if (value.trim() === '') {\n            // Prevent dialog closing, as provided value is empty.\n            return false;\n        } \n\n        console.log(value);\n    }\n});\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbgaze%2Fbootstrap4-dialogs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbgaze%2Fbootstrap4-dialogs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbgaze%2Fbootstrap4-dialogs/lists"}