Read and creare Apple Icon Image format files
Parse a buffer into a useful structure with each icon type and its data and convert that structure into a buffer to save it back to a valid .icns.
Ensure you have Node.js 8 or later installed. Then run the following:
$ npm install icns-lib
const fs = ;const icns = ;const buffer = fs// Parse the buffer into a map where the key is the Icon type (icp4, icp5, etc) and the value is a buffer with the data.const icons = icns;Object// Save the icon set without all the non-image iconsfs
MIT © Manuel Rueda