{"id":19723891,"url":"https://github.com/wraith13/typed-octicons","last_synced_at":"2026-05-14T15:37:00.568Z","repository":{"id":57383387,"uuid":"188788777","full_name":"wraith13/typed-octicons","owner":"wraith13","description":"Typed wrapper of GitHub Octicons for TypeScript.","archived":false,"fork":false,"pushed_at":"2020-01-30T18:28:08.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-19T11:48:41.996Z","etag":null,"topics":["npm","npm-package","octicons"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/typed-octicons","language":"TypeScript","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/wraith13.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE_1_0.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-27T07:00:09.000Z","updated_at":"2020-01-30T18:28:10.000Z","dependencies_parsed_at":"2022-09-26T16:50:21.821Z","dependency_job_id":null,"html_url":"https://github.com/wraith13/typed-octicons","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wraith13%2Ftyped-octicons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wraith13%2Ftyped-octicons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wraith13%2Ftyped-octicons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wraith13%2Ftyped-octicons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wraith13","download_url":"https://codeload.github.com/wraith13/typed-octicons/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241045513,"owners_count":19899664,"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":["npm","npm-package","octicons"],"created_at":"2024-11-11T23:23:50.063Z","updated_at":"2026-05-14T15:36:55.518Z","avatar_url":"https://github.com/wraith13.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# typed-octicons\n\n`typed-octicons` is a typed wrapper of [GitHub Octicons](https://www.npmjs.com/package/@primer/octicons) for TypeScript.\n\n## Install\n\n```\n$ npm install typed-octicons --save\n```\n\n## How to use\n\n```typescript\nimport octicons from \"typed-octicons\";\n\nconst svg: string = octicons.bell.toSVG();\nconsole.log(svg); // \u003csvg version=\"1.1\" width=\"14\" height=\"16\" viewBox=\"0 0 14 16\" class=\"octicon octicon-bell\" aria-hidden=\"true\"\u003e\u003cpath fill-rule=\"evenodd\" d=\"M14 12v1H0v-1l.73-.58c.77-.77.81-2.55 1.19-4.42C2.69 3.23 6 2 6 2c0-.55.45-1 1-1s1 .45 1 1c0 0 3.39 1.23 4.16 5 .38 1.88.42 3.66 1.19 4.42l.66.58H14zm-7 4c1.11 0 2-.89 2-2H5c0 1.11.89 2 2 2z\"/\u003e\u003c/svg\u003e\n\nconst makeOcticonSVG = (octicon: Octicon | keyof typeof octicons): SVGElement =\u003e\n{\n    const div = document.createElement(\"div\");\n    div.innerHTML =\n        (\n            \"string\" === typeof octicon ?\n                octicons[octicon]:\n                octicon\n        )\n        .toSVG();\n    return \u003cSVGElement\u003ediv.firstChild;\n};\n\ndocument.body.appendChild(makeOcticonSVG(octicons.bell));\ndocument.body.appendChild(makeOcticonSVG(\"bell\"));\n```\n\n## How to build\n\nrequires: [Node.js](https://nodejs.org/), [TypeScript Compiler](https://www.npmjs.com/package/typescript)\n\n`tsc -P .` or `tsc -P . -w`\n\n### In VS Code\n\nYou can use automatic build. Run `Tasks: Allow Automatic Tasks in Folder` command from command palette ( Mac: \u003ckbd\u003eF1\u003c/kbd\u003e or \u003ckbd\u003eShift\u003c/kbd\u003e+\u003ckbd\u003eCommand\u003c/kbd\u003e+\u003ckbd\u003eP\u003c/kbd\u003e, Windows and Linux: \u003ckbd\u003eF1\u003c/kbd\u003e or \u003ckbd\u003eShift\u003c/kbd\u003e+\u003ckbd\u003eCtrl\u003c/kbd\u003e+\u003ckbd\u003eP\u003c/kbd\u003e), and restart VS Code.\n\n## License\n\n[Boost Software License](./LICENSE_1_0.txt)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwraith13%2Ftyped-octicons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwraith13%2Ftyped-octicons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwraith13%2Ftyped-octicons/lists"}