code: function getAppIconByPid(pid, opts) {
    opts = getOptions(opts);
    return execa.stdout(
      execPath,
      [pid, '--size', opts.size, '--encoding', 'buffer'],
      {
        encoding: 'buffer'
      }
    );
  }
docs: Find an icon for a running application (by it's PID)
  @example
  const { getAppIconByPid } = require('node-mac-app-icon');
  
  getAppIconByPid(814, { size: 32 }).then(res => {
  console.log(res); // res is a Buffer
  });
  
  @param {number} pid App PID (Process ID)
  @param {ListOptions} opts
  @returns {Promise<Buffer>} Buffer containing image data