Skip to content

v0.0.4

Latest
Compare
Choose a tag to compare
@fiahfy fiahfy released this 15 Nov 16:12
· 9 commits to master since this release

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)