1.0.0 • Published 2 years ago

set-icon v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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)