{"id":21565115,"url":"https://github.com/cfware/icon-builder","last_synced_at":"2025-03-18T05:17:28.471Z","repository":{"id":57101033,"uuid":"297484908","full_name":"cfware/icon-builder","owner":"cfware","description":"Build `icons.js` in the target directory","archived":false,"fork":false,"pushed_at":"2023-10-17T02:01:56.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-09T10:31:52.157Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cfware.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-21T23:32:07.000Z","updated_at":"2022-08-27T02:34:59.000Z","dependencies_parsed_at":"2024-09-23T18:05:42.939Z","dependency_job_id":"4aa220d2-8266-45af-94db-fd18268721ae","html_url":"https://github.com/cfware/icon-builder","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfware%2Ficon-builder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfware%2Ficon-builder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfware%2Ficon-builder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfware%2Ficon-builder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cfware","download_url":"https://codeload.github.com/cfware/icon-builder/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244160055,"owners_count":20408021,"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-11-24T10:18:28.463Z","updated_at":"2025-03-18T05:17:28.442Z","avatar_url":"https://github.com/cfware.png","language":"JavaScript","readme":"# @cfware/icon-builder [![NPM Version][npm-image]][npm-url]\n\nBuild `icons.js` in the target directory.\n\n## Usage\n\nCreate `./pkgs/icon/icon-chars.js`:\n```js\nexport const iconChars = {\n\tban: '\\uF05E',\n\t'caret-down': '\\uF0D7',\n\t'caret-right': '\\uF0DA',\n\tdownload: '\\uF019',\n\tedit: '\\uF044',\n\tenvelope: '\\uF0E0',\n\t'exclamation-triangle': '\\uF071',\n\t'id-card': '\\uF2C2',\n\tlist: '\\uF03A',\n\tlock: '\\uF023',\n\tmicrophone: '\\uF130',\n\t'phone-alt': '\\uF879',\n\tplus: '\\uF067',\n\t'question-circle': '\\uF059',\n\t'sign-out-alt': '\\uF2F5',\n\ttimes: '\\uF00D',\n\t'trash-alt': '\\uF2ED',\n\tupload: '\\uF093',\n\tuser: '\\uF007'\n};\n```\n\nThe exported object should have keys associated with Font-Awesome icon names,\nvalues should be the Unicode point to produce for the WOFF2 font.\n\n```\nnpm i -D @cfware/icon-builder\nnpm i @cfware/shadow-element\nnpx cfware-iconbuilder ./pkgs/icon ./pkgs/icon/icon-chars.js iconChars\n```\n\nThis command will produce `./pkgs/icon/icon.js`.  Importing that file will\nregister the custom element `cfware-icon`.  An example usage is:\n```js\nconst banIcon = () =\u003e html`\u003ccfware-icon icon=\"\\uF05E\" /\u003e`;\n```\n\nIn addition `./pkgs/icon/fontawesome-free` will be created containing the\n`package.json` and `LICENSE.txt` files installed by `@fortawesome/fontawesome-free`.\n\n[npm-image]: https://img.shields.io/npm/v/@cfware/icon-builder.svg\n[npm-url]: https://npmjs.org/package/@cfware/icon-builder\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcfware%2Ficon-builder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcfware%2Ficon-builder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcfware%2Ficon-builder/lists"}