Skip to content

Releases: fiahfy/ico

v0.0.4

15 Nov 16:12
Compare
Choose a tag to compare

Breaking Changes

  • Required named export.
// before
import Ico from '@fiahfy/ico'

// after
import { Ico } from '@fiahfy/ico'
  • Create the instance from the buffer.
// before
const ico = new Ico(buf)

// after
const ico = Ico.from(buf)
  • Add the image to ico instance.
// before
await ico.appendImage(buf)

// after
const image = IcoImage.fromPNG(buf)
ico.append(image)