{"id":19217491,"url":"https://github.com/lwdgit/fis3-hook-iconfont","last_synced_at":"2025-08-27T11:14:10.636Z","repository":{"id":57237215,"uuid":"41853481","full_name":"lwdgit/fis3-hook-iconfont","owner":"lwdgit","description":"Auto generate iconfont for fis3","archived":false,"fork":false,"pushed_at":"2015-09-16T01:14:14.000Z","size":6616,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-03T00:51:27.342Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/lwdgit.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}},"created_at":"2015-09-03T10:13:25.000Z","updated_at":"2015-09-04T16:39:32.000Z","dependencies_parsed_at":"2022-08-26T15:10:16.140Z","dependency_job_id":null,"html_url":"https://github.com/lwdgit/fis3-hook-iconfont","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lwdgit/fis3-hook-iconfont","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lwdgit%2Ffis3-hook-iconfont","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lwdgit%2Ffis3-hook-iconfont/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lwdgit%2Ffis3-hook-iconfont/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lwdgit%2Ffis3-hook-iconfont/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lwdgit","download_url":"https://codeload.github.com/lwdgit/fis3-hook-iconfont/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lwdgit%2Ffis3-hook-iconfont/sbom","scorecard":{"id":606534,"data":{"date":"2025-08-11","repo":{"name":"github.com/lwdgit/fis3-hook-iconfont","commit":"6049336ede45b1245de0004b92e139fc1771ac26"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/11 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-21T01:44:13.920Z","repository_id":57237215,"created_at":"2025-08-21T01:44:13.920Z","updated_at":"2025-08-21T01:44:13.920Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272325292,"owners_count":24914628,"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-08-27T02:00:09.397Z","response_time":76,"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":[],"created_at":"2024-11-09T14:22:29.280Z","updated_at":"2025-08-27T11:14:10.576Z","avatar_url":"https://github.com/lwdgit.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fis3-hook-iconfont [![NPM version](https://badge.fury.io/js/fis3-hook-iconfont.png)](https://www.npmjs.org/package/fis3-hook-iconfont)\n\n## 安装:\n    npm install -g fis3-hook-iconfont\n\n## 用法:\n\n```javascript\n\nfis.hook('iconfont', {\n    'fonts': '**.svg', //图标文件\n    'destFont': 'fonts', //产出字体目录\n    'fontName': 'reasy_font', //产出字体名称\n    'destHtml': 'fonts/demo.html'//如果无需输出示例页面，请设置为false\n    'destCss': 'style/font.css',//注：如果css文件已经存在，则会将对应位置的样式占位符替换为字体样式,默认为字体名\n    'iconClass': 'reasy-font',//定义字体图标应用的主样式,默认为icon-font\n    'placeholder': 'reasyfont'//css占位符，用于自动替换指定位置的字符串为css,\n    //占位符形式为 : /**reasyfont**/ ...css /**end reasyfont**/\n});\n```\n\n如`a.css`文件里面有如下代码：\n```css\nbody {\n  background: #fff;\n}\n/**reasyfont**/\n\n\n/**end reasyfont**/\n```\n\n则会被替换为：\n\n```css\nbody {\n  background: #fff;\n}\n\n/********reasyfont********/\n@font-face {\n  font-family:\"reasy_font\";\n  src:url(\"reasy_font.eot\");\n  src:url(\"reasy_font.eot?#iefix\") format(\"embedded-opentype\"),\n    url(\"reasy_font.woff\") format(\"woff\"),\n    url(\"reasy_font.ttf\") format(\"truetype\"),\n    url(\"reasy_font.svg#reasy_font\") format(\"svg\");\n  font-weight:normal;\n  font-style:normal;\n}\n\n.reasy-font {\n  font-family:\"reasy_font\";\n  display:inline-block;\n  vertical-align:middle;\n  line-height:1;\n  font-weight:normal;\n  font-style:normal;\n  speak:none;\n  text-decoration:inherit;\n  text-transform:none;\n  text-rendering:auto;\n  -webkit-font-smoothing:antialiased;\n  -moz-osx-font-smoothing:grayscale;\n}\n\n\n.icon-advanced:before {\n  content: '\\e001';\n}\n\n... other css...\n\n/******end reasyfont********/\n```\n\n\n## 关于`XP下\u003c=IE8`的兼容性问题\n\n\u003e 现已知**`XP下的IE8在服务器环境下`**可能无法显示iconfont, 需要兼容IE8的可以考虑加上`respond.js`以及`html5shim.js`来解决。见 https://github.com/sapegin/grunt-webfont/issues/264\n\n\u003e 经验证，所有的主流字体库都存在这个问题，如iconmoon, awesome等，但是win7下的ie8是正常的","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flwdgit%2Ffis3-hook-iconfont","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flwdgit%2Ffis3-hook-iconfont","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flwdgit%2Ffis3-hook-iconfont/lists"}