Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

node-win-extracticon

nabil-mansouri26Apache-2.01.0.0TypeScript support: included

A native plugin to extract associated icon from a file. Work on windows only. It extracts a large icon with transparency.

Native, windows, associated, icon

readme

node-win-extracticon

A small plugin that let you extract an associated icon from a file. The icon extracted is large and contains transparency. The plugin let you display a list of file using OS file system icons. It only works with windows OS.

Usage

npm i --save node-win-extracticon
getIcon(path.resolve("./donotexists"), "test/donotexists.ico", function (err,msg) {
    console.log(msg);
})

Typescript definition

declare module exicon{
    export function getIcon(src: string, dest: string, callback: (err:Error,path:string) => void) ;
}

See demo folder!