@abibv/vscode-icons-js
v11.6.3
Published
File specific icons from vscode vscode-icons extension
Downloads
16
Maintainers
Readme
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
- vscode-icons extension for vscode
- github-vscode-icons extension for chrome, which shows vscode-icons icons in github repository
- vscode-icons-js-example example