{"id":48830966,"url":"https://github.com/webfactory/breakpoints-export","last_synced_at":"2026-04-14T20:31:41.059Z","repository":{"id":318948350,"uuid":"1076956043","full_name":"webfactory/breakpoints-export","owner":"webfactory","description":null,"archived":false,"fork":false,"pushed_at":"2025-10-16T14:49:11.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-16T15:29:31.914Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"SCSS","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/webfactory.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-15T15:15:25.000Z","updated_at":"2025-10-16T14:49:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"649d9e7c-f595-4778-9fba-ba4fdf65e1d9","html_url":"https://github.com/webfactory/breakpoints-export","commit_stats":null,"previous_names":["webfactory/breakpoints-export"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/webfactory/breakpoints-export","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webfactory%2Fbreakpoints-export","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webfactory%2Fbreakpoints-export/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webfactory%2Fbreakpoints-export/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webfactory%2Fbreakpoints-export/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webfactory","download_url":"https://codeload.github.com/webfactory/breakpoints-export/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webfactory%2Fbreakpoints-export/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31815062,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T18:05:02.291Z","status":"ssl_error","status_checked_at":"2026-04-14T18:05:01.765Z","response_time":153,"last_error":"SSL_read: 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":"2026-04-14T20:31:40.342Z","updated_at":"2026-04-14T20:31:41.052Z","avatar_url":"https://github.com/webfactory.png","language":"SCSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# breakpoints-export Utility\n\nA JS/SCSS utility that syncs (S)CSS breakpoints with runtime JavaScript by exporting breakpoint maps as CSS custom properties and providing a tiny JS helper to read and compare them against the current viewport (e.g. bp.lessThan, bp.greaterThan).\n\n## Installation\n\n```\nnpm install @webfactoryde/breakpoints-export\n```\n\n## Usage\n\nDefine your breakpoints as a Sass map and import the SCSS mixin in your module(s) and use it to generate the necessary Custom Properties:\n\n```scss\n@use '@webfactoryde/breakpoints-export' as *;\n\n$breakpoints: (\n    screen-m: 768px,\n    screen-l: 1200px,\n    navigation-breakpoint: 875px,\n);\n\n@include breakpoints-export($breakpoints);\n```\n\nImport the `breakpoints-export` function in your module(s) and use the comparison you need:\n\n```javascript\n// your module\nimport bp from '@webfactoryde/breakpoints-export';\n\nif (bp.greaterThan('navigation-breakpoint')) {\n    // do cool stuff\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebfactory%2Fbreakpoints-export","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebfactory%2Fbreakpoints-export","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebfactory%2Fbreakpoints-export/lists"}