icns2ico
v1.0.6
Published
convert icns to ico
Downloads
5
Readme
🚀 ICNS2ICO!
1. Installation
npm install icns2ico
2. Usage
const icns2ico = require("icns2ico")
const fs = require("fs")
const path = require("path")
const icns = path.resolve(__dirname, "assets/QQ.icns") //your resource
const icoName = path.parse(icns)["name"]
icns2ico(icns).map(({ size, png }) => {
if (png) {
const name = `${icoName}_${size}.ico`
fs.writeFileSync(`./${name}`, png)
}
})