{"id":13508740,"url":"https://github.com/websemantics/file-icons-js","last_synced_at":"2025-04-09T12:09:43.703Z","repository":{"id":47454865,"uuid":"86282180","full_name":"websemantics/file-icons-js","owner":"websemantics","description":"File specific icons for Javascript. A port of Atom File-icons (see https://github.com/file-icons/atom)","archived":false,"fork":false,"pushed_at":"2021-08-31T03:03:48.000Z","size":531,"stargazers_count":85,"open_issues_count":1,"forks_count":15,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-09-20T13:07:25.097Z","etag":null,"topics":["devicons","icons","javascript","mfizz","nodejs","octicons"],"latest_commit_sha":null,"homepage":"https://websemantics.github.io/file-icons-js/","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/websemantics.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-27T02:24:16.000Z","updated_at":"2024-07-15T02:43:39.000Z","dependencies_parsed_at":"2022-08-31T14:10:49.511Z","dependency_job_id":null,"html_url":"https://github.com/websemantics/file-icons-js","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/websemantics%2Ffile-icons-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/websemantics%2Ffile-icons-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/websemantics%2Ffile-icons-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/websemantics%2Ffile-icons-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/websemantics","download_url":"https://codeload.github.com/websemantics/file-icons-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248036067,"owners_count":21037092,"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":["devicons","icons","javascript","mfizz","nodejs","octicons"],"created_at":"2024-08-01T02:00:57.760Z","updated_at":"2025-04-09T12:09:43.681Z","avatar_url":"https://github.com/websemantics.png","language":"JavaScript","readme":"```\n╭───────╮                    ╭────╮\n│    ╭──╯╭───╮╭───╮╭──────╮  ├────┤╭──────╮╭──────╮╭────┬─╮╭──────╮\n│    ╰──╮├───┤│   ││  ──  │  │    ││   ╭──╯│   ╭╮ ││      ││  ────┤\n│    ╭──╯│   ││   ││      │  │    ││   ╰──╮│   ││ ││   ╭╮ ││      │\n│    │   │   ││   ││  ────┤  │    ││      ││   ╰╯ ││   ││ │├────  │\n╰────╯   ╰───╯╰───╯╰──────╯  ╰────╯╰──────╯╰──────╯╰───╯╰─╯╰──────╯\n╭─╮  ╭─╮  ┬─╮         ┬  ╭─╮  ┬  ┬  ╭─╮  ╭─╮  ╭─╮  ┬─╮  ┬  ╭─╮  ╭┬╮\n├┤   │ │  ├┬╯         │  ├─┤  ╰╮╭╯  ├─┤  ╰─╮  │    ├┬╯  │  ├─╯   │\n┴    ╰─╯  ┴╰─       ╰─╯  ┴ ┴   ╰╯   ┴ ┴  ╰─╯  ╰─╯  ┴╰─  ┴  ┴     ┴\n```\n\u003e File specific icons for the browser from Atom File-icons, https://github.com/file-icons/atom\n\n[![Hyperapp demo](https://img.shields.io/badge/File%20icons%20demo-%E2%86%92-9D6EB3.svg?style=flat-square)](https://websemantics.github.io/file-icons-js)\n\n\n\u003cimg alt=\"Icon previews\" width=\"850\" src=\"https://raw.githubusercontent.com/file-icons/atom/6714706f268e257100e03c9eb52819cb97ad570b/preview.png\" /\u003e\n\n## Install\n\nUse `npm` to install as follows,\n\n```bash\nnpm i websemantics/file-icons-js\n```\n\nOr, `Bower`,\n\n```bash\nbower i websemantics/file-icons-js\n```\n\n## Getting Started\n\nInclude `css` styles from `css/style.css` in the header of an html document.\n\nGet an instance of `FileIcons` class,\n\n```js\nvar icons = window.FileIcons;\n```\n\nGet the class name of the icon that represent a filename (for example `text-icon`),\n\n```js\nvar filename = 'src/app.js';\nvar class_name = icons.getClass(filename);\n```\n\nYou can also get a class name of the associated icon color,\n\n```js\nvar  filename = 'README.md';\nvar class_name = icons.getClassWithColor(filename);\n```\n\nUse the class name to generate html, for example,\n\n```js\ndocument.body.innerHTML = \"\u003ca\u003e\u003ci class=\" + class_name + \"\u003e\u003c/i\u003e$filename\u003c/a\u003e\";\n```\n\n## Resources\n\n- [Atom File Icons](https://github.com/file-icons/atom), file specific icons for improved visual grepping.\n- [Markdown Browser Plus](https://github.com/websemantics/markdown-browser-plus), Github flavoured, local file browser for markdown docs.\n\n## Support\n\nNeed help or have a question? post at [StackOverflow](https://stackoverflow.com/questions/tagged/file-icons-js+websemantics).\n\n*Please don't use the issue trackers for support/questions.*\n\n*Star if you find this project useful, to show support or simply for being awesome :)*\n\n## Contribution\n\nContributions to this project are accepted in the form of feedback, bugs reports and even better - pull requests.\n\n## License\n\n[MIT license](http://opensource.org/licenses/mit-license.php) Copyright (c) Web Semantics, Inc.\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebsemantics%2Ffile-icons-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebsemantics%2Ffile-icons-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebsemantics%2Ffile-icons-js/lists"}