node-gtk-icon-lookup
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

node-gtk-icon-lookup

A native Node.js module for looking up GTK3+ icons.

Installation

npm install --save node-gtk-icon-lookup

Usage

import GtkIcons from 'node-gtk-icon-lookup';

if (await GtkIcons.isIconLookupSupported()) {
  const iconFilePath = GtkIcons.getIconFilePath('avatar-default', 32);
  console.log(iconFilePath); 
}

Example output (depends on the current icon theme):

/usr/share/icons/Papirus-Dark/32x32/status/avatar-default.svg

Running Tests

This package uses Mocha for tests. Tests will fail if run on a machine that doesn't have GTK3+ installed.

npm run test

Readme

Keywords

none

Package Sidebar

Install

npm i node-gtk-icon-lookup

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

73.3 kB

Total Files

19

Last publish

Collaborators

  • vladmarica