{"id":21890816,"url":"https://github.com/chantastic/map-pseudo-classes","last_synced_at":"2026-04-11T14:37:09.095Z","repository":{"id":33465692,"uuid":"37111301","full_name":"chantastic/map-pseudo-classes","owner":"chantastic","description":"Using JS map() to implement CSS psuedo-classes","archived":false,"fork":false,"pushed_at":"2015-06-09T06:34:51.000Z","size":360,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-22T03:11:38.406Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chantastic.png","metadata":{"files":{"readme":"README.markdown","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":"2015-06-09T05:02:27.000Z","updated_at":"2019-06-25T14:27:53.000Z","dependencies_parsed_at":"2022-09-10T08:40:51.499Z","dependency_job_id":null,"html_url":"https://github.com/chantastic/map-pseudo-classes","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chantastic/map-pseudo-classes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chantastic%2Fmap-pseudo-classes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chantastic%2Fmap-pseudo-classes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chantastic%2Fmap-pseudo-classes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chantastic%2Fmap-pseudo-classes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chantastic","download_url":"https://codeload.github.com/chantastic/map-pseudo-classes/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chantastic%2Fmap-pseudo-classes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31684525,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T13:07:20.380Z","status":"ssl_error","status_checked_at":"2026-04-11T13:06:47.903Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":"2024-11-28T12:17:19.481Z","updated_at":"2026-04-11T14:37:09.064Z","avatar_url":"https://github.com/chantastic.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### map-pseudo-classes\n*Using JS map() to implement CSS psuedo-classes*\n\n---\n\nThese examples demonstrate how to simulate psuedo-classes with `map()`.\n\nUsing React.js, it's become popular to use inline-styles. In the examples directory are a few components that demonstrate how you might reproduce the affects of some `pseude-classes` without CSS.\n\n### Examples\n\n* [:first-child](https://github.com/chantastic/map-pseudo-classes/blob/master/examples/FirstChild.js#L7)\n* [:last-child](https://github.com/chantastic/map-pseudo-classes/blob/master/examples/LastChild.js#L7)\n* [:only-child](https://github.com/chantastic/map-pseudo-classes/blob/master/examples/OnlyChild.js#L7)\n* [:nth-child(n)](https://github.com/chantastic/map-pseudo-classes/blob/master/examples/NthChildN.js#L13)\n* [:nth-child(odd)](https://github.com/chantastic/map-pseudo-classes/blob/master/examples/NthChildOdd.js#L7)\n* [:nth-child(even)](https://github.com/chantastic/map-pseudo-classes/blob/master/examples/NthChildEven.js#L7)\n\n### View Examples\n\n* clone the repo: `git clone git@github.com:chantastic/map-pseudo-classes.git`\n* cd into your new copy: `cd map-psuedo-classes`\n* start a server `python -m SimpleHTTPServer`\n* visit `localhost:8000`\n\n\n\n### Anti-usage\n\nThese components are worthless. Don't use them as components. Just steal the bits expressions.\n\n\u003c3 [chantastic](http://twitter.com/chantastic)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchantastic%2Fmap-pseudo-classes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchantastic%2Fmap-pseudo-classes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchantastic%2Fmap-pseudo-classes/lists"}