Detalhes do pacote

node-win-extracticon

nabil-mansouri13Apache-2.01.0.0

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 (leia-me)

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!