Socket
Socket
Sign inDemoInstall

electron-icns

Package Overview
Dependencies
65
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    electron-icns

generate electron icns icon


Version published
Maintainers
1
Install size
7.62 MB
Created

Readme

Source

electron-icns

npm version npm downloads

A tool for generating icns icons for use with Electron on macOS

use

npx

npx electron-icns /path/to/your/png/icon

npm global

npm i -g electron-icns

electron-icns /path/to/your/png/icon

dev dependencies

install

npm i -D electron-icns

use npm scripts

{
  "scripts": {
    "icns": "electron-icns /path/to/your/png/icon"
  },
}

show

electron-icns / from /path/to/your/png/icon
electron-icns / mkTmpDir / success
electron-icns / sips... 10/10
electron-icns / iconutil / success
electron-icns / rmTmpDir / success
electron-icns / success /path/to/icns/icon

api

icns

generate electron mac icns icon

  • pngPath
    • type: string
    • desc: png path
  • return
    • type: string
    • desc: icns path
// cjs
const { icns } = require('electron-icns');

// mjs
import { icns } from 'electron-icns';

// icns
const icnsPath = await icns(pngPath);

Keywords

FAQs

Last updated on 07 Mar 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc