{"id":22166217,"url":"https://github.com/maxerbox/get-icon-path","last_synced_at":"2025-03-24T16:15:32.831Z","repository":{"id":57250230,"uuid":"167424382","full_name":"maxerbox/get-icon-path","owner":"maxerbox","description":"Get the icon path from the icon theme,  for KDE, GNOME, in accordance to the freedesktop standards","archived":false,"fork":false,"pushed_at":"2019-01-25T18:38:38.000Z","size":82,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-17T07:54:12.744Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://maxerbox.github.io/get-icon-path/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maxerbox.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":"2019-01-24T19:28:34.000Z","updated_at":"2019-01-25T18:38:39.000Z","dependencies_parsed_at":"2022-08-24T16:51:55.218Z","dependency_job_id":null,"html_url":"https://github.com/maxerbox/get-icon-path","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/maxerbox%2Fget-icon-path","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxerbox%2Fget-icon-path/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxerbox%2Fget-icon-path/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxerbox%2Fget-icon-path/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxerbox","download_url":"https://codeload.github.com/maxerbox/get-icon-path/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245304869,"owners_count":20593626,"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-12-02T05:18:31.613Z","updated_at":"2025-03-24T16:15:32.810Z","avatar_url":"https://github.com/maxerbox.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Get icon path from theme - freedesktop spec\n\n\u003ca href=\"https://onury.io/docma\"\u003e\u003cimg src=\"https://img.shields.io/badge/docs%20by-docma-c27cf4.svg?docs%20by=docma\u0026style=flat-square\" alt=\"documentation\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://standardjs.com\"\u003e\u003cimg src=\"https://img.shields.io/badge/code_style-standard-brightgreen.svg?style=flat-square\" alt=\"Standard - JavaScript Style Guide\"\u003e\u003c/a\u003e\n\nAn alternative to hardcode tray for electron apps !\n\n## What's this\n\nA lot of electron apps use hardcoded icons for tray icon, such as discord, rambox, etc...\nThis module allows those apps to use icons from icons themes installed for Gnome, KDE...\nIt was originally developped for rambox.\nIt's based on freedesktop icon theme specification.\n\n## USAGE\n\n`npm i --save get-icon-path`\n\n```js\nconst { getIcon, getIconSync } = require('get-icon-path')\ngetIcon({ iconName: 'rambox-notification', size: 32 }, 'test.path', function (e) {\n  console.log(e, 'Promised')\n})\ngetIcon('rambox-notification', 'test.path', function (e) {\n  //e will equals to 'test.path' if no icons is found\n  console.log(e, 'Promised')\n})\nvar res = getIconSync({ iconName: 'rambox-notification' }, 'text.path')\nconsole.log(res, 'Non promised')\n```\n\n## DOCUMENTATION\n\n[https://maxerbox.github.io/get-icon-path/](https://maxerbox.github.io/get-icon-path/)\n\n## TO DO\n\n- Herited theme parsing\n- KDE enabled theme detection","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxerbox%2Fget-icon-path","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxerbox%2Fget-icon-path","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxerbox%2Fget-icon-path/lists"}