11.6.3 • Published 2 years ago

@abibv/vscode-icons-js v11.6.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

vscode-icons-js

A forked project from vscode-icons-js by Daniel Derevjanik

Changes

  • Removed log4js

Installation

npm i @abibv/vscode-icons-js

Usage

  • To use in your project, download or clone this repo vscode-icons, then copy the icons/ folder to your project directory.

  • Add the path to the icons/ folder before the filename

import { getIconForFile, getIconForFolder, getIconForOpenFolder } from '@abibv/vscode-icons-js';

const file = `/path_to_the_icons_folder/${getIconForFile('main.cpp')}`;
console.log(file);
// /path_to_the_icons_folder/file_type_cpp.svg

Example from source repo

https://dderevjanik.github.io/vscode-icons-js-example/

Source Code: https://github.com/dderevjanik/vscode-icons-js-example

Related