@webberg/extract-file-icon
TypeScript icon, indicating that this package has built-in type declarations

0.4.0 • Public • Published

extract-file-icon

Note: Because original repository has not maintenance, so I fork it and add a new feature for linux platform.

Get associated file icon for Node.js.

Installation

To install this package, just run

$ npm install @webbery/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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.4.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.4.0
    0

Package Sidebar

Install

npm i @webberg/extract-file-icon

Weekly Downloads

0

Version

0.4.0

License

MIT

Unpacked Size

15.2 kB

Total Files

10

Last publish

Collaborators

  • webberg