Skip to content

sancarn/file-icon-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

file-icon-server

Install

npm install file-icon-server

For Windows, the server uses PowerShell to extract icons. Therefore you may need to install powershell.

For Mac, the server uses Swift to extract icons. Therefore if your OS is <10.10 you will need to download the Swift runtime libraries.

Usage

import server from 'file-icon-server'
server.getIcon("my/file/path1")
server.getIcon("my/file/path2")
server.getIcon("my/file/path3")

//Close server
server.stop()

or alternatively if you want initialisation to happen at a different time (usually it starts when getIcon is called for the first time):

import server from 'file-icon-server'
server.start()

//...later...

server.getIcon("my/file/path")

//...later...

server.stop()

Icon is returned as a data url.

About

Get icons for exe and files using NodeJS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors