{"id":19954291,"url":"https://github.com/kimmelsg/cj-resized","last_synced_at":"2025-08-04T16:33:20.434Z","repository":{"id":57343549,"uuid":"101197237","full_name":"kimmelsg/cj-resized","owner":"kimmelsg","description":"Return different values based on browser width","archived":false,"fork":false,"pushed_at":"2018-06-26T20:19:28.000Z","size":37,"stargazers_count":33,"open_issues_count":0,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-07-28T12:38:07.016Z","etag":null,"topics":["media","media-queries","react","width"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/kimmelsg.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}},"created_at":"2017-08-23T15:40:14.000Z","updated_at":"2021-09-28T11:37:30.000Z","dependencies_parsed_at":"2022-09-12T07:00:31.641Z","dependency_job_id":null,"html_url":"https://github.com/kimmelsg/cj-resized","commit_stats":null,"previous_names":["navjobs/resized"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kimmelsg/cj-resized","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimmelsg%2Fcj-resized","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimmelsg%2Fcj-resized/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimmelsg%2Fcj-resized/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimmelsg%2Fcj-resized/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kimmelsg","download_url":"https://codeload.github.com/kimmelsg/cj-resized/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimmelsg%2Fcj-resized/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268723051,"owners_count":24296543,"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-08-04T02:00:09.867Z","response_time":79,"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":["media","media-queries","react","width"],"created_at":"2024-11-13T01:19:39.669Z","updated_at":"2025-08-04T16:33:20.397Z","avatar_url":"https://github.com/kimmelsg.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## React Resized\n[![CircleCI](https://circleci.com/gh/navjobs/resized.svg?style=svg)](https://circleci.com/gh/navjobs/resized)\n[![Coverage Status](https://coveralls.io/repos/github/navjobs/resized/badge.svg?branch=master\u0026t=VOxE00)](https://coveralls.io/github/navjobs/resized?branch=master)\n\n## Install\n\n```js\nnpm install react-resized --save\n```\n\n## Usage\n\n```js\nimport Media from 'react-resized'\n\nconst Test = props =\u003e (\n  \u003cimg src={props.media} /\u003e\n)\n\nexport default Media(Test)(\n  props =\u003e [\n    props.small,\n    props.medium,\n    props.large\n  ]\n)\n```\n\nThe correct size image will be loaded according to the browser size. Default widths are: `0, 767, 1023`. The size closest to the current browser width, that isn't greater than the current width, will be returned. You can optionally pass in custom sizes as the second parameter:\n\n```js\nMedia(Test)(\n  props =\u003e ({\n    '0': props.small,\n    '500': props.medium,\n    '1000': props.large\n  })\n)\n```\n\nThat's it! \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkimmelsg%2Fcj-resized","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkimmelsg%2Fcj-resized","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkimmelsg%2Fcj-resized/lists"}