akabekobeko / npm-icon-gen

Icon file generator for Windows, macOS, Web
MIT License
157 stars 29 forks source link

Feature request: Allow optional buffer(s) instead of `src` file/folder #142

Open davej opened 2 years ago

davej commented 2 years ago

I already have the buffers of the source files in memory. It would be nice if I could just pipe the buffers straight to icon-gen. Right now I need to temporarily write the files to disk before icon-gen can use them.

mifi commented 2 years ago

or streams would be even more flexible, e.g. createReadStream or Readable.from(myBuffer). should be pretty simple to implement with sharp