{"id":20681154,"url":"https://github.com/happer64bit/style-eyes","last_synced_at":"2025-04-22T11:33:44.307Z","repository":{"id":252398227,"uuid":"840324593","full_name":"happer64bit/style-eyes","owner":"happer64bit","description":"a command-line tool for optimizing CSS files by combining related properties into shorthand forms 🔥","archived":false,"fork":false,"pushed_at":"2024-08-10T15:34:45.000Z","size":38,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T14:41:26.742Z","etag":null,"topics":["css","optimization","style"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/happer64bit.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":"2024-08-09T12:59:46.000Z","updated_at":"2024-08-11T21:09:23.000Z","dependencies_parsed_at":"2024-08-09T14:28:38.838Z","dependency_job_id":"34054432-52fb-4994-8e7d-eb6ad6acd374","html_url":"https://github.com/happer64bit/style-eyes","commit_stats":null,"previous_names":["happer64bit/style-eyes"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/happer64bit%2Fstyle-eyes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/happer64bit%2Fstyle-eyes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/happer64bit%2Fstyle-eyes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/happer64bit%2Fstyle-eyes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/happer64bit","download_url":"https://codeload.github.com/happer64bit/style-eyes/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250232582,"owners_count":21396664,"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","optimization","style"],"created_at":"2024-11-16T22:09:50.320Z","updated_at":"2025-04-22T11:33:44.284Z","avatar_url":"https://github.com/happer64bit.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Style Eyes\n\n`style-eyes` is a command-line tool for optimizing CSS files by combining related properties into shorthand forms. It helps streamline your CSS and improve performance by reducing file size.\n\n## Features\n\n- **Combine Padding Properties**: Merges `padding-top`, `padding-right`, `padding-bottom`, and `padding-left` into a single `padding` property.\n- **Combine Margin Properties**: Merges `margin-top`, `margin-right`, `margin-bottom`, and `margin-left` into a single `margin` property.\n- **Combine Background Properties**: Merges `background-color`, `background-image`, `background-position`, `background-repeat`, and `background-size` into a single `background` property.\n- **Combine Border Properties**: Merges `border-top-width`, `border-top-style`, `border-top-color`, etc., into a single `border` property.\n- **Combine Font Properties**: Merges `font-style`, `font-variant`, `font-weight`, `font-size`, `line-height`, and `font-family` into a single `font` property.\n- **Combine Border Radius Properties**: Merges `border-top-left-radius`, `border-top-right-radius`, `border-bottom-right-radius`, and `border-bottom-left-radius` into a single `border-radius` property.\n- **Optimize Display Properties**: Merges conflicting `display` properties into a single value.\n\n## Installation\n\nTo use `style-eyes`, clone the repository and install dependencies:\n\n```bash\ngit clone https://github.com/happer64bit/style-eyes.git\ncd style-eyes\nnpm install\n```\n\n## Usage\n\nThe `style-eyes` CLI tool optimizes CSS files and writes the output to a specified file. You can choose to overwrite the original file if desired.\n\n### Command\n\n```bash\nstyle-eyes \u003cinputFile\u003e [outputFile] [-o, --overwrite]\n```\n\n- `\u003cinputFile\u003e`: Path to the input CSS file.\n- `[outputFile]`: Optional path to the output CSS file. If not provided, the optimized CSS will be written to `\u003cinputFile\u003e.o.css`.\n- `-o, --overwrite`: Optional flag to overwrite the output file if it exists.\n\n### Examples\n\nOptimize `styles.css` and save the result to `styles.o.css`:\n\n```bash\nstyle-eyes styles.css styles.o.css\n```\n\nOptimize `styles.css` and overwrite the original file:\n\n```bash\nstyle-eyes styles.css -o\n```\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Contact\n\nGitHub: [happer64bit](https://github.com/happer64bit)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhapper64bit%2Fstyle-eyes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhapper64bit%2Fstyle-eyes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhapper64bit%2Fstyle-eyes/lists"}