{"id":20681149,"url":"https://github.com/qodesmith/list-css-selectors","last_synced_at":"2025-10-19T08:51:57.316Z","repository":{"id":93196945,"uuid":"115795517","full_name":"qodesmith/list-css-selectors","owner":"qodesmith","description":"List all the selectors in your CSS files(s).","archived":false,"fork":false,"pushed_at":"2018-05-10T00:20:58.000Z","size":16,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-06T12:54:18.913Z","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/qodesmith.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}},"created_at":"2017-12-30T12:30:50.000Z","updated_at":"2021-04-01T15:22:10.000Z","dependencies_parsed_at":"2023-06-18T15:36:31.493Z","dependency_job_id":null,"html_url":"https://github.com/qodesmith/list-css-selectors","commit_stats":{"total_commits":25,"total_committers":1,"mean_commits":25.0,"dds":0.0,"last_synced_commit":"6a4a9584788fc04a8c688d4a30922473946f5908"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qodesmith%2Flist-css-selectors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qodesmith%2Flist-css-selectors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qodesmith%2Flist-css-selectors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qodesmith%2Flist-css-selectors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qodesmith","download_url":"https://codeload.github.com/qodesmith/list-css-selectors/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242925854,"owners_count":20207752,"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-11-16T22:09:49.797Z","updated_at":"2025-10-19T08:51:52.257Z","avatar_url":"https://github.com/qodesmith.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# List CSS Selectors\n\nA simple way to list all the selectors used in your CSS file(s).\n\n## Installation\n\nVia [npm](https://www.npmjs.com/package/list-css-selectors):\n```\nnpm i list-css-selectors\n```\n\n\n## Usage\n\nYour CSS file:\n```css\ndiv { display: block; }\n\n#some-id { color: red; }\n.some-class { color: white; }\n.hover:hover { color: blue; }\n\n[data-noval] { opacity: 0; }\n[data-test='ok'] { opacity: 1; }\n\n@keyframes softblink {\n  0% { opacity: 1; }\n  50% { opacity: 0; }\n  100% { opacity: 1; }\n}\n\n@media screen and (min-width: 768px) and (max-width: 1024px) {\n  .selector-in-media-query { width: 100%; }\n}\n\n```\n\n\nRun **list-css-selectors**:\n```javascript\nconst listSelectors = require('list-css-selectors');\nconst { resolve } = require('path');\nconst pathToMyFile = resolve(resolve(), './styles.css');\nconst selectors = listSelectors(pathToMyFile);\n```\n\nThe results of `selectors` will be:\n```javascript\n[\n  'div',\n  '#some-id',\n  '.some-class',\n  '.hover::hover',\n  '[data-noval]',\n  '[data-test=\\'ok\\']',\n  'softblink',\n  '.selector-in-media-query'\n]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqodesmith%2Flist-css-selectors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqodesmith%2Flist-css-selectors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqodesmith%2Flist-css-selectors/lists"}