@ffgflash/badger
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

Badger

Examples

Favicons

import Badger, { Position } from '#ffgflash/badger'

const favicon = document.querySelector<HTMLLinkElement>('link[rel$=icon]')

const badger = new Badger({
  src: favicon.href,
  size: 0.7,
  radius: 10,
  position: Position.TOP_RIGHT,
})

badger.on('draw', url => {
  favicon.href = url
})

Readme

Keywords

none

Package Sidebar

Install

npm i @ffgflash/badger

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

42.2 kB

Total Files

8

Last publish

Collaborators

  • ffgflash