bradjasper / extract-file-icon

Get associated file icon

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

extract-file-icon

Get associated file icon for Node.js.

Installation

To install this package, just run

$ npm install extract-file-icon

Quick start

The following example shows how to get the currently focused window's title and hide it.

const fileIcon = require("extract-file-icon");

const icon = fileIcon('path', 32); // Returns PNG buffer of 32x32 file icon at given path. 

Documentation

Default exported method getFileIcon(path: string, size: number)

  • path string
  • size number - by default its value is 64. On Windows it can be only 16, 32, 64 or 256.

About

Get associated file icon

License:MIT License


Languages

Language:C++ 74.1%Language:Objective-C++ 12.6%Language:Python 7.4%Language:TypeScript 3.2%Language:JavaScript 2.7%