extract-file-icon-fix
TypeScript icon, indicating that this package has built-in type declarations

0.3.3 • Public • Published

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.

/extract-file-icon-fix/

    Package Sidebar

    Install

    npm i extract-file-icon-fix

    Weekly Downloads

    1

    Version

    0.3.3

    License

    MIT

    Unpacked Size

    13.7 kB

    Total Files

    9

    Last publish

    Collaborators

    • twl12138