{"id":32486264,"url":"https://github.com/raiseandfall/grunt-cssmyicons","last_synced_at":"2025-10-27T05:40:49.328Z","repository":{"id":33317135,"uuid":"36961877","full_name":"raiseandfall/grunt-cssmyicons","owner":"raiseandfall","description":"Grunt plugin to generate a CSS for SVG icons","archived":false,"fork":false,"pushed_at":"2017-07-10T12:44:30.000Z","size":26,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-07T16:23:45.812Z","etag":null,"topics":["css-icon","grunt","grunt-plugin","svg-icons"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/grunt-cssmyicons","language":"JavaScript","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/raiseandfall.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-06T00:36:24.000Z","updated_at":"2017-02-02T13:45:58.000Z","dependencies_parsed_at":"2022-08-31T09:00:15.793Z","dependency_job_id":null,"html_url":"https://github.com/raiseandfall/grunt-cssmyicons","commit_stats":null,"previous_names":["raiseandfall/cssmyicons"],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/raiseandfall/grunt-cssmyicons","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raiseandfall%2Fgrunt-cssmyicons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raiseandfall%2Fgrunt-cssmyicons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raiseandfall%2Fgrunt-cssmyicons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raiseandfall%2Fgrunt-cssmyicons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raiseandfall","download_url":"https://codeload.github.com/raiseandfall/grunt-cssmyicons/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raiseandfall%2Fgrunt-cssmyicons/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281222564,"owners_count":26464000,"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","status":"online","status_checked_at":"2025-10-27T02:00:05.855Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["css-icon","grunt","grunt-plugin","svg-icons"],"created_at":"2025-10-27T05:40:45.132Z","updated_at":"2025-10-27T05:40:49.323Z","avatar_url":"https://github.com/raiseandfall.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CSS my icons  \n\n[![Build Status](https://travis-ci.org/raiseandfall/grunt-cssmyicons.svg)](https://travis-ci.org/raiseandfall/grunt-cssmyicons) [![Downloads](https://img.shields.io/npm/dt/grunt-cssmyicons.svg)](https://www.npmjs.com/package/grunt-cssmyicons)\n\n\u003e Grunt plugin to generate a CSS file for SVG icons used as background-image:\n\n```css\n.icon-home{background-image:url('icons/home.svg');background:no-repeat;}\n```\n\n\u003e There are also versions for [Broccoli](https://github.com/raiseandfall/broccoli-cssmyicons) and [Gulp](https://github.com/raiseandfall/gulp-cssmyicons)\n\n## [CHANGELOG](./CHANGELOG.md)\n\n## INSTALL\n\n```shell\n$ npm install grunt-cssmyicons\n```\n\n## USAGE\n```javascript\ngrunt.initConfig({\n  cssmyicons: {\n    main: {\n      src: ['assets/svg'],\n      destCss: 'styles/icons.css'\n    }\n  }\n});\n```\n\n## OPTIONS\n\n#### src\nType: `Array`  \n_Required_  \n\nThis option is the glob of the svg folders.\n\n#### destCss\nType: `String`  \n_Required_  \n\nPath to the CSS file to export to.\n\n#### destIcons\nType: `String`  \n_Optional_  \n\nFolder to copy icons files.\n\n#### cwd\nType: `String`  \nDefault: Current working directory  \n_Optional_  \n\nUsed as a working directory for CSS \u0026 icons exports. \n\n#### prefixPath\nType: `String`  \nDefault: null  \n_Optional_  \n\nPrefix to add at the beginning of the icons path\n\n\n## EXAMPLE \n```javascript\ncssmyicons: {\n    copyIcons: {\n        src: ['test/fixtures/*'],\n        cwd: 'tmp/copyIcons',\n        destIcons: 'icons',\n        destCss: 'icons.css'\n    }\n}\n```\n\nIn this case the icons will be copied to ```tmp/copyIcons/icons```, the CSS file will be generated here: ```tmp/copyIcons/icons.css``` and the base path for the background-image will be ```background-image:url(\"icons/icon.svg\")```.\n\n## CONTRIBUTE\n```shell\n$ grunt\n```\n\n##### Run tests  \n```shell\n$ grunt test\n```\n\n## LICENSE \nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraiseandfall%2Fgrunt-cssmyicons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraiseandfall%2Fgrunt-cssmyicons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraiseandfall%2Fgrunt-cssmyicons/lists"}