electron-icns-ex
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

electron-icns-ex

A node.js native addon designed to convert icns to png on Mac.

Example

This is a native module, so it must be used on the main process. If you want to use the image in the renderer process, then you need to pass the base64 string or file path from the main process to the renderer process through ipc channel.

const icns = require('electron-icns-ex');

// Get DateUrl
const base64 = icns.parseIcnsToBase64(icnsPath);

// Save png file
icns.parseIcnsToPNG(icnsPath, pngPath);

Readme

Keywords

Package Sidebar

Install

npm i electron-icns-ex

Weekly Downloads

5

Version

1.0.1

License

MIT

Unpacked Size

120 kB

Total Files

10

Last publish

Collaborators

  • bbfat