npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

seticon-cli

v1.3.0

Published

Cross-platform CLI to change folder icons on Windows, macOS and Linux, with automatic PNG to ICO conversion on Windows

Readme

seticon

JavaScript Release License Contributor Covenant Downloads

sharp png-to-ico decode-bmp ico-extract

Stars Forks Watchers Contributors Open issues

Cross-platform CLI to change folder icons on Windows, macOS and Linux.

Accepts common image formats and automatically converts them to a multi-size ICO, then applies the icon using the right mechanism for each desktop environment.

✨ Star History

🎖️ Features

  • Cross-platform — Windows, macOS, Linux (GNOME and KDE)
  • Many input formatsico, png, jpg, jpeg, bmp, tif, tiff, webp, svg
  • Automatic ICO conversion built in (multi-size: 16, 32, 48, 64, 128, 256); png and ico are used as-is
  • Overlay mode — lay your image (or text) over a real folder icon, with color variants and zoom
  • Reset — restore the default icon of one or more folders with seticon reset <folders...>
  • Content-addressed icon cache with deduplication (same image reused, never re-converted)
  • No admin / sudo required for the icon change itself
  • Detects the OS and applies the correct mechanism automatically:
    • Windows → desktop.ini + attrib +H +S +R
    • macOS → NSWorkspace.setIcon via osascript (Finder)
    • Linux → gio set metadata::custom-icon (GNOME) + .directory (KDE)

📋 Requirements

  • Node.js >= 18.17.0
  • Windows: works out of the box
  • macOS: Finder automation permission (prompted on first run)
  • Linux: gio (part of glib2, present by default on most distros)

📦 Installation

# npm
npm i seticon-cli

# yarn
yarn add seticon-cli

# pnpm
pnpm add seticon-cli

Or install it globally to use the seticon command anywhere:

# npm
npm i -g seticon-cli

# yarn
yarn global add seticon-cli

# pnpm
pnpm add -g seticon-cli

⚙️ Usage

# Set a folder icon (any image is auto-converted to ICO)
seticon set -f "./MyFolder" -i "./icon.png"
seticon set -f "./MyFolder" -i "./photo.webp"

# Shorthand: positional arguments, no flags needed
seticon "./MyFolder" "./icon.png"
seticon convert "./image.jpg" "./icon.ico"

# Long options also work
seticon set --folder "Documents" --icon "logo.svg"

# Convert an image to ICO without setting an icon
seticon convert -i "./image.bmp" -o "./icon.ico"

# Pick specific sizes for the ICO output
seticon convert --icon "photo.png" --output "icon.ico" --sizes 16,32,48

# Reset folder(s) back to their default icon (one or more)
seticon reset "./MyFolder"
seticon reset "./A" "./B" "./C"
seticon "./A" "./B" -r

# Show the full manual
seticon --help

# Switch the interface language, remembered for next runs (en, fr)
seticon --lang fr
seticon -l en

🎨 Overlay mode

Instead of using your image directly, lay it over a real folder icon. Add --overlay (-ov):

# Lay an image over your machine's folder icon, then apply it
seticon set -f "./MyFolder" -i "./logo.png" --overlay

# Color the folder and zoom the overlay (short aliases)
seticon set -f "./Dev" -i "js.png" -ov -va blue -ic variant -z 125

# Color it with a preset or a raw hex
seticon set -f "./Photos" -i "cam.png" -ov -va "#e67e22"

# Draw text on the folder instead of an image
seticon set -f "./Work" --text "WORK" --overlay --variant blue
seticon set -f "./Docs" -t "DOCS" -ov -va red -tc "#ffffff"

# Force the macOS look (the only style you can force from any OS)
seticon set -i "logo.svg" -o "icon.ico" --overlay --os mac --variant red

| Option | Alias | Values | Notes | | ------ | ----- | ------ | ----- | | --overlay | -ov | — | Enable overlay mode | | --os | -os | mac | Force the folder style. Only mac is allowed; otherwise the OS is auto-detected | | --variant | -va | mac: variant name · windows/linux: color preset or #hex | Folder color | | --icon-color | -ic | original, variant | Keep image colors or tint to folder | | --text | -t | any short text | Draw text instead of an image | | --text-color | -tc | #hex | Text color (default: the folder color) | | --zoom | -z | 75, 92, 100, 108, 125 | Overlay size |

Overlay accepts either an image (-i) or text (--text), not both.

💡 Overlay mode is inspired by and credits FolderArt by christianvmm, whose folder designs and approach this feature builds upon.

🖼️ Supported formats

| Input format | Behavior | | ------------------------------------- | --------------------- | | png, ico | used as-is | | jpg, jpeg, bmp, tif, tiff, webp, svg | auto-converted to a multi-size ico |

Converted icons are stored once in a content-addressed cache and reused for identical images, so the same picture is never converted twice.

🖥️ How the icon is applied per OS

| OS | Mechanism | | ------- | ------------------------------------------------------------------- | | Windows | desktop.ini (absolute IconResource) + attrib +H +S +R | | macOS | NSWorkspace.setIcon via osascript (Finder permission on 1st run) | | Linux | gio set metadata::custom-icon (GNOME) + .directory file (KDE) |

🤝 Contributing

We welcome contributions of all kinds — bug reports, feature ideas, documentation fixes and pull requests. Please read the contributing guide and follow our code of conduct before getting started.

📜 License

Licensed under MIT License and copyrights reserved.