sindresorhus/file-icon

Add support for array of inputs

SamVerschueren opened this issue · 3 comments

Issuehunt badges

It would be nice if you could retrieve multiple icons at the same time.

fileIcon(['Safari', 'Chrome']).then(buffers => {
    fs.writeFileSync('safari-icon.png', buffer[0]);
    fs.writeFileSync('chrome-icon.png', buffer[1]);
});

The Swift part of the code should handle getting multiple icons and then send back an array of buffers to the JS side.


IssueHunt Summary

jgradim jgradim has been rewarded.

Backers (Total: $60.00)

Submitted pull Requests


Tips

@IssueHunt has funded $60.00 to this issue.


I can fix this if it's still needed

@sindresorhus has rewarded $54.00 to @jgradim. See it on IssueHunt

  • 💰 Total deposit: $60.00
  • 🎉 Repository reward(0%): $0.00
  • 🔧 Service fee(10%): $6.00