set-icon
v1.0.0
Published
Node.js wrapper around [NSWorkspace.setIcon(_:forFile:options:)](https://developer.apple.com/documentation/appkit/nsworkspace/1529882-seticon). You can use this to change icons for .apps.
Downloads
12
Readme
set-icon
Node.js wrapper around NSWorkspace.setIcon(_:forFile:options:). You can use this to change icons for .apps.
Install
yarn add set-icon
# or
npm install set-icon
CLI usage
set-icon <file_path> <icon_path> # to change
set-icon <file_path> # to reset
Usage
import setIcon from 'set-icon'
// to change
await setIcon('/Applications/Foo.app', 'icon.png')
// to reset
await setIcon('/Applications/Foo.app', null)