{"id":18047989,"url":"https://github.com/codelinered/bootstrap-breakpoint","last_synced_at":"2026-02-17T05:02:47.871Z","repository":{"id":137953280,"uuid":"144729837","full_name":"CodelineRed/bootstrap-breakpoint","owner":"CodelineRed","description":"Write JavaScript conditions depending on the Bootstrap breakpoints","archived":false,"fork":false,"pushed_at":"2022-12-30T19:41:09.000Z","size":41,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-21T13:51:54.400Z","etag":null,"topics":["bootstrap","bootstrap4","breakpoint","jquery-plugin","plugin","vanilla","vanilla-javascript","vanilla-js"],"latest_commit_sha":null,"homepage":"","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/CodelineRed.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-08-14T14:14:23.000Z","updated_at":"2023-09-28T11:17:40.000Z","dependencies_parsed_at":"2023-07-03T15:01:05.700Z","dependency_job_id":null,"html_url":"https://github.com/CodelineRed/bootstrap-breakpoint","commit_stats":null,"previous_names":["insanitymeetshh/bootstrap-media-breakpoint"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/CodelineRed/bootstrap-breakpoint","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodelineRed%2Fbootstrap-breakpoint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodelineRed%2Fbootstrap-breakpoint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodelineRed%2Fbootstrap-breakpoint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodelineRed%2Fbootstrap-breakpoint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodelineRed","download_url":"https://codeload.github.com/CodelineRed/bootstrap-breakpoint/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodelineRed%2Fbootstrap-breakpoint/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000736,"owners_count":26082862,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"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":["bootstrap","bootstrap4","breakpoint","jquery-plugin","plugin","vanilla","vanilla-javascript","vanilla-js"],"created_at":"2024-10-30T20:10:34.920Z","updated_at":"2025-10-08T23:24:09.296Z","avatar_url":"https://github.com/CodelineRed.png","language":"JavaScript","readme":"# Bootstrap Breakpoint\r\n\r\nThis is a JavaScript variant of the [BS4 SCSS mixins](https://github.com/twbs/bootstrap/blob/v4-dev/scss/mixins/_breakpoints.scss) and [BS5 SCSS mixins](https://github.com/twbs/bootstrap/blob/v530-dev/scss/mixins/_breakpoints.scss) `media-breakpoint-up`, `media-breakpoint-down`, `media-breakpoint-between` and `media-breakpoint-only`.\r\n\r\nSee also [BS4 Responsive Breakpoints](https://getbootstrap.com/docs/4.6/layout/overview/#responsive-breakpoints) or [BS5 Responsive Breakpoints](https://getbootstrap.com/docs/5.3/layout/breakpoints/#media-queries).\r\n\r\nWorks with Bootstrap 4 and 5.\r\n\r\n## Available at [NPM](https://www.npmjs.com/package/bootstrap-breakpoint)\r\n\r\n```bash\r\n$ npm i bootstrap-breakpoint\r\n```\r\n\r\n## Example\r\n\r\nJavaScript ([bootstrap-breakpoint.js](https://github.com/CodelineRed/bootstrap-breakpoint/blob/master/src/js/bootstrap-breakpoint.js))\r\n```js\r\n// bootstrapBreakpoint(mode, breakpoint);\r\n// mode = up, down, between or only\r\n// breakpoint = xs, sm, md, lg, xl or xxl\r\n\r\nif (bootstrapBreakpoint('up', 'md')) {\r\n    // code if window width is greater equal than md\r\n}\r\n\r\nif (bootstrapBreakpoint('down', 'lg')) {\r\n    // code if window width is lower than lg\r\n}\r\n\r\nif (bootstrapBreakpoint('between', ['sm','lg'])) {\r\n    // code if window width is greater equal sm and lower than lg\r\n}\r\n\r\nif (bootstrapBreakpoint('only', 'xs')) {\r\n    // code if window width is in range of xs\r\n}\r\n\r\n// adding further breakpoints\r\nBootstrapBreakpoint.breakpoints.push('xxl');\r\nBootstrapBreakpoint.init();\r\n// or \r\nBootstrapBreakpoint.breakpoints = [\"xs\", \"sm\", \"md\", \"lg\", \"xl\", \"xxl\"];\r\nBootstrapBreakpoint.init();\r\n```\r\n\r\n## Examples\r\n- [HTML](https://github.com/CodelineRed/bootstrap-breakpoint/blob/master/example/index.html)\r\n- [JavaScript](https://github.com/CodelineRed/bootstrap-breakpoint/blob/master/example/js/scripts.js)\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodelinered%2Fbootstrap-breakpoint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodelinered%2Fbootstrap-breakpoint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodelinered%2Fbootstrap-breakpoint/lists"}