@abibv/vscode-icons-js
TypeScript icon, indicating that this package has built-in type declarations

11.6.3 • Public • Published

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

Package Sidebar

Install

npm i @abibv/vscode-icons-js

Weekly Downloads

6

Version

11.6.3

License

MIT

Unpacked Size

420 kB

Total Files

37

Last publish

Collaborators

  • abibv