{"id":28458884,"url":"https://github.com/marktext/file-icons","last_synced_at":"2025-07-22T04:31:30.258Z","repository":{"id":65985097,"uuid":"439746934","full_name":"marktext/file-icons","owner":"marktext","description":"atom file icons","archived":false,"fork":false,"pushed_at":"2022-01-02T14:04:53.000Z","size":223,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-07-02T09:41:40.815Z","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/marktext.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2021-12-19T00:59:22.000Z","updated_at":"2023-11-14T08:22:53.000Z","dependencies_parsed_at":"2023-02-19T19:16:10.976Z","dependency_job_id":null,"html_url":"https://github.com/marktext/file-icons","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/marktext/file-icons","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marktext%2Ffile-icons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marktext%2Ffile-icons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marktext%2Ffile-icons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marktext%2Ffile-icons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marktext","download_url":"https://codeload.github.com/marktext/file-icons/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marktext%2Ffile-icons/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266427522,"owners_count":23926814,"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-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":"2025-06-07T00:40:23.265Z","updated_at":"2025-07-22T04:31:30.226Z","avatar_url":"https://github.com/marktext.png","language":"JavaScript","readme":"# File Icons\n\nFile icons used in **MarkText** and inspired by [file-icons/atom](https://github.com/file-icons/atom/tree/master).\n\n![](https://github.com/marktext/file-icons/blob/main/preview.png)\n\n#### Installation\n\n```shell\nyarn add @marktext/file-icons\n```\n\n#### Usage\n\n```javascript\nimport fileIcons from '@marktext/file-icons'\nimport '@marktext/file-icons/build/index.css'\n\nconst icon = fileIcons.matchLanguage('javascript')\n// iconEle.classList.add(icon.icon)\n// icon with color\n// iconEle.classList.add(icon.colour[0])\n// iconEle.classList.add(icon.colour[1])\n```\n\nYou can refer more APIs at [atom/icon-tables.js at master · file-icons/atom · GitHub](https://github.com/file-icons/atom/blob/master/lib/icons/icon-tables.js)\n\n#### Development\n\n```shell\nyarn dev\n```\n\nAnd open browser at `http://127.0.0.1:3000/` to see the example. the example is at folder `src`.\n\n#### Build and Publish\n\n```shell\n# Change the version in package.json\n# Build to the build folder\nyarn build\n# Publish to npm\nyarn pub\n```\n\n#### License\n\nMIT.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarktext%2Ffile-icons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarktext%2Ffile-icons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarktext%2Ffile-icons/lists"}