GitShow/sindresorhus/file-icon
sindresorhus

file-icon

Get the icon of a file or app as a PNG image (macOS)

by sindresorhus
appfileiconimagemacosnodejspathpng
Star on GitHubForknpm

JavaScript

218 stars25 forks5 contributorsQuiet · 9mo agoSince 2017v6.0.0MIT

Meet the team

See all 5 on GitHub →
sindresorhus
sindresorhus31 contributions
jgradim
jgradim1 contribution
RiftLurker
RiftLurker1 contribution
mreid-tt
mreid-tt1 contribution
SamVerschueren
SamVerschueren1 contribution

Languages

View on GitHub →
JavaScript52.9%
Swift32.9%
TypeScript14.2%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
71
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
iamEvanYT
[Bug] No TypeScript TypesClosedIssue

On the documentation on npm, it wrote: However, there are no types for the 'file-icon' package.

iamEvanYT · 9mo ago
YongzeYao
unable to use this with ts. ClosedIssue

Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/yaoyongze/Desktop/electron-projects/lynn-electron/node_modules/file-icon/index.js from /Users/yaoyongze/Desktop/electron-projects/lynn-electron/dist/electron/daemon/image-cache.js not supported. Instead change the require of index.js in /Users/yaoyongze/Desktop/electron-projects/lynn-electron/dist/electron/daemon/image-cache.js to a dynamic import() which is available in all CommonJS modules. at c._load (node:electron/js2c/node_init:2:13672) at Object. (/Users/yaoyongze/Desktop/electron-projects/lynn-electron/dist/electron/daemon/image-cache.js:20:21) at c._load (node:electron/js2c/node_init:2:13672) at Object. (/Users/yaoyongze/Desktop/electron-projects/lynn-electron/dist/electron/electron.js:13:23) at c._load (node:electron/js2c/node_init:2:13672) ^C/Users/yaoyongze/Desktop/electron-projects/lynn-electron/node_modules/electron/dist/Electron.app/Contents/MacOS/Electron exited with signal SIGINT

YongzeYao · 2y ago
mreid-tt
handle app names that include "." charactersMergedPR

apps such as Zoom have app names 'zoom.us'; proposing this change to treat with these situations.

mreid-tt · 3y ago
Structured data for AI agents

Repository: sindresorhus/file-icon. Description: Get the icon of a file or app as a PNG image (macOS) Stars: 218, Forks: 25. Primary language: JavaScript. Languages: JavaScript (52.9%), Swift (32.9%), TypeScript (14.2%). License: MIT. Topics: app, file, icon, image, macos, nodejs, path, png, swift. Latest release: v6.0.0 (9mo ago). Open PRs: 0, open issues: 0. Last activity: 9mo ago. Community health: 71%. Top contributors: sindresorhus, jgradim, RiftLurker, mreid-tt, SamVerschueren.

·@ofershap

Replace github.com with gitshow.dev