Skip to content

💅 Change icon for any file or app in macOS. Node.js wrapper around NSWorkspace.setIcon(_:forFile:options:)

License

Notifications You must be signed in to change notification settings

TextsHQ/set-icon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

💅 Change icon for any file or app in macOS. Node.js wrapper around NSWorkspace.setIcon(_:forFile:options:)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published