electron-ext-icon
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

electron-ext-icon

NPM

Get icon associated with file extension.

Installing

$ npm install electron-ext-icon

API

  • getExtIcon(ext: string, options?: Electron.FileIconOptions): Promise<Electron.NativeImage>
// Electron main
import { writeFileSync } from 'fs';
import { getExtIcon } from 'electron-ext-icon';
 
const icon = await getExtIcon('html', { size: 'normal' });
 
icon.toDataURL(); // Base64

Related

  • Qusly - An FTP/SFTP client with Material Design UI.

Package Sidebar

Install

npm i electron-ext-icon

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

7.1 kB

Total Files

14

Last publish

Collaborators

  • xnerhu