Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 602 Bytes

readme.md

File metadata and controls

26 lines (21 loc) · 602 Bytes

set-icon

Node.js wrapper around NSWorkspace.setIcon(_:forFile:options:) with a prebuilt binary. 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)