SkillAgentSearch skills...

Iconutil

Convert between PNG/Iconsets and .ICNS files with NodeJS

Install / Use

/learn @wtfaremyinitials/Iconutil
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

iconutil

Convert between PNG/Iconsets and .ICNS files with Node.JS

Installation

Requires OSX and Xcode.

npm install iconutil

Usage

###Convert an ICNS file to an Iconset

var iconutil = require('iconutil');

var path = '/Applications/Messages.app/Contents/Resources/Messages.icns';

iconutil.toIconset(path, function(err, icons) {
    // icons is an an object where keys are the file names
    // and the values are Buffers containing PNG files
});

###Convert an Iconset to to an ICNS file

var iconutil = require('iconutil');

var path = './test.iconset';

iconutil.toICNS(path, function(err, icon) {
    // icon is a Buffer containing the ICNS file
});
View on GitHub
GitHub Stars12
CategoryDevelopment
Updated12mo ago
Forks4

Languages

JavaScript

Security Score

67/100

Audited on Apr 8, 2025

No findings