Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rvmoldova/associated-icon
https://github.com/rvmoldova/associated-icon
associated associated-icon csharp express icon macos node nodejs objective-c windows
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/rvmoldova/associated-icon
- Owner: rvmoldova
- Created: 2017-10-25T12:58:18.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-06T11:46:27.000Z (about 7 years ago)
- Last Synced: 2024-10-01T09:12:40.179Z (about 2 months ago)
- Topics: associated, associated-icon, csharp, express, icon, macos, node, nodejs, objective-c, windows
- Language: Objective-C
- Size: 73.2 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Associated Icon v1.2.0
### Instalation
```
npm install associated-icon
```
### Supported Platforms- Windows
- MacOS X### Use example
```ts
import AssociatedIcon from 'associated-icon';async function main() {
let associatedIcon = new AssociatedIcon(); // or new AssociatedIcon(true); (this will use execFile instead of spawn, so this will work in electron)
let response = await associatedIcon.getBase64Icon('[PATH_TO_APPLICATION_OR_SHORTCUT]');
response.Base64Image // App icon in base64
response.Path // if it's shortcut, here will be original exe's path
}main();
```