{"id":15009169,"url":"https://github.com/sspirou/dead-styles-shear","last_synced_at":"2026-03-15T22:49:07.875Z","repository":{"id":72847335,"uuid":"246834832","full_name":"sspirou/dead-styles-shear","owner":"sspirou","description":"Py script for trimming dead style rules from a website directory","archived":false,"fork":false,"pushed_at":"2020-04-01T04:24:45.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-19T07:42:10.616Z","etag":null,"topics":["css-selector-parser","css-selectors","pagespeed","python27","selectors","web"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/sspirou.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-03-12T12:58:10.000Z","updated_at":"2020-04-01T04:24:48.000Z","dependencies_parsed_at":"2024-07-18T17:21:33.039Z","dependency_job_id":null,"html_url":"https://github.com/sspirou/dead-styles-shear","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sspirou%2Fdead-styles-shear","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sspirou%2Fdead-styles-shear/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sspirou%2Fdead-styles-shear/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sspirou%2Fdead-styles-shear/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sspirou","download_url":"https://codeload.github.com/sspirou/dead-styles-shear/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243233842,"owners_count":20258348,"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":["css-selector-parser","css-selectors","pagespeed","python27","selectors","web"],"created_at":"2024-09-24T19:23:25.458Z","updated_at":"2025-12-28T02:05:41.470Z","avatar_url":"https://github.com/sspirou.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dead-styles-shear\nPy scripts for identifying and trimming dead style rules from a website directory. Written in python 2.7\n\n----------\n### Identify Dead Style Rules\n\n`findDeadStyles.py pathToDirectory [ignoreJS]`\n  -  recursively search the input directory for html and javascript files to build a list of all selectors being used\n  -  pass `ignoreJS` to optionally only crawl html files when building used selectors list\n  -  recursively search the input directory for css and scss files to build a list of all style rules\n  -  write output file, deadStyles.css, listing all dead styling rules in input directory\n  \n##### Output:\n- deadStyles.css - valid css file containing each unused selector listed on its own line followed by `{}`\n----------\n### Trim Dead Style Rules [TODO]\n\n`trimStyles.py pathToDirectory [ignoreJS]`\n  -  mimics behavior above to generate list of dead style rules, then finds each dead rule in the list and removes it from input directory's css files.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsspirou%2Fdead-styles-shear","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsspirou%2Fdead-styles-shear","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsspirou%2Fdead-styles-shear/lists"}