{"id":16350291,"url":"https://github.com/niksy/media-query-gap","last_synced_at":"2025-11-12T17:30:16.416Z","repository":{"id":57293923,"uuid":"74286050","full_name":"niksy/media-query-gap","owner":"niksy","description":"Apply gap on max-width/height media queries.","archived":false,"fork":false,"pushed_at":"2020-10-21T08:05:52.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T06:49:50.766Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/niksy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-20T16:06:58.000Z","updated_at":"2020-10-21T08:05:55.000Z","dependencies_parsed_at":"2022-09-01T13:01:41.363Z","dependency_job_id":null,"html_url":"https://github.com/niksy/media-query-gap","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niksy%2Fmedia-query-gap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niksy%2Fmedia-query-gap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niksy%2Fmedia-query-gap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niksy%2Fmedia-query-gap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/niksy","download_url":"https://codeload.github.com/niksy/media-query-gap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239558915,"owners_count":19658927,"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":[],"created_at":"2024-10-11T01:02:48.522Z","updated_at":"2025-11-12T17:30:16.371Z","avatar_url":"https://github.com/niksy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# media-query-gap\n\n[![Build Status][ci-img]][ci]\n\nApply gap on max-width/height media queries.\n\nUseful when you want to\n[prevent double breakpoints](http://tzi.fr/css/prevent-double-breakpoint).\n\nThis is a low-level module. You’re probably looking for\n[PostCSS][postcss-plugin] or [Babel][babel-plugin] plugin.\n\n## Install\n\n```sh\nnpm install media-query-gap --save\n```\n\n## Usage\n\n```js\nimport mediaQueryGap from 'media-query-gap';\n\nconsole.log(emMediaQuery('screen and (max-width:600px)'));\n// 'screen and (max-width:599px)'\n\nconsole.log(emMediaQuery('screen and (max-width:37.5em)'));\n// 'screen and (max-width:37.49em)'\n```\n\n## API\n\n### mediaQueryGap(str)\n\nReturns: `string`\n\n#### str\n\nType: `string`\n\nMedia query to convert.\n\n## License\n\nMIT © [Ivan Nikolić](http://ivannikolic.com)\n\n\u003c!-- prettier-ignore-start --\u003e\n\n[ci]: https://travis-ci.com/niksy/media-query-gap\n[ci-img]: https://travis-ci.com/niksy/media-query-gap.svg?branch=master\n[postcss-plugin]: https://github.com/niksy/postcss-media-query-gap\n[babel-plugin]: https://github.com/niksy/babel-plugin-media-query-gap\n\n\u003c!-- prettier-ignore-end --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniksy%2Fmedia-query-gap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fniksy%2Fmedia-query-gap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniksy%2Fmedia-query-gap/lists"}