1.4.0 • Published 6 years ago

node-mac-app-icon v1.4.0

Weekly downloads
25
License
MIT
Repository
github
Last release
6 years ago

node-mac-app-icon

Build Status

Get App icons by pid on macOS in NodeJS. Returns a Buffer representation of the App's icon data.

The node source uses a Swift binary to fetch the icons so it's pretty fast.

Returning a Buffer is inspired by sindresorhus/file-icon.

Install

$ npm install node-mac-app-icon --save

Usage

const { getAppIconByPid, getAppIconListByPid } = require('node-mac-app-icon');

getAppIconByPid(814, { size: 32 }).then(res => {
  console.log(res); // res is a Buffer
});

getAppIconListByPid([814, 20134, 503], { size: 512 }).then(res => {
  console.log(res); // array of { pid: ..., icon: ... }
});

License

This software is licensed under the MIT License

1.4.0

6 years ago

1.3.0

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago