{"id":16747582,"url":"https://github.com/differui/ruhua","last_synced_at":"2025-06-13T02:33:02.955Z","repository":{"id":81986061,"uuid":"53783218","full_name":"differui/ruhua","owner":"differui","description":"Generate and minify CSS sprite images.","archived":false,"fork":false,"pushed_at":"2016-05-11T05:49:00.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-27T06:09:27.360Z","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/differui.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":"2016-03-13T12:10:41.000Z","updated_at":"2020-01-08T02:23:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"f2f47960-aaba-457c-962a-f92796e19996","html_url":"https://github.com/differui/ruhua","commit_stats":{"total_commits":16,"total_committers":2,"mean_commits":8.0,"dds":0.3125,"last_synced_commit":"8b25e24b338afe614746980003b1919e0f60dafe"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/differui/ruhua","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/differui%2Fruhua","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/differui%2Fruhua/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/differui%2Fruhua/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/differui%2Fruhua/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/differui","download_url":"https://codeload.github.com/differui/ruhua/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/differui%2Fruhua/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259567068,"owners_count":22877634,"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-10-13T02:10:26.988Z","updated_at":"2025-06-13T02:33:02.912Z","avatar_url":"https://github.com/differui.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"**ruhua** - A handy sprite generator for commend line.\n=====\n\n![ruhua](https://cloud.githubusercontent.com/assets/3120588/13744602/d1c7a116-ea23-11e5-96b8-b49121d6a1e5.jpg)\n\n\u003e 大爷，经常来玩哦。\n\n## Install\n\nYou can get **ruhua** via npm:\n\n```\n$ npm install -g ruhua\n```\n\n## Usage\n\n```bash\nUsage\n  $ ruhua \u003cfile\u003e \u003cfile\u003e ... \u003cfile\u003e\n  $ ruhua \u003cdirectory\u003e --css \u003coutput\u003e --img \u003coutput\u003e\n\nOptions\n  -c, --css       Output css\n  -i, --img       Output img\n  -r, --ratio     CSS resize ratio (2x/0.5, 3x/0.33, 4x/0.25)\n  -R, --recursive Attemp to read image recursively\n  -v, --verbose   Log error message\n  -p, --pad       Add padding between images\n\nExamples\n  $ ruhua sprites/\n  $ ruhua sprites/ --css dist/sprite.css --img dist/sprite.png\n  $ ruhua sprites/ --ratio .5 --pad 5\n```\n\n**ruhua** will search icons in CWD if run without after arguments. Stylesheet and image will be created in it if run without dest path.\n\n```\n$ ruhua\n```\n\n**ruhua** allows you to generate sprite image for retina device.The way is to take relative CSS property multipled a ratio number.\n\n```\n$ ruhua -r 0.5 # Generate sprite image for 2X retina device\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdifferui%2Fruhua","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdifferui%2Fruhua","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdifferui%2Fruhua/lists"}