1.2.2 • Published 11 months ago

favorite-icon-dot v1.2.2

Weekly downloads
21
License
MIT
Repository
github
Last release
11 months ago

🔴 Favorite Icon Dot

NPM version NPM downloads

Small library for dot manipulating with desktop favicon.

Desktop browser support

  • Chrome: ✅
  • Edge: ✅
  • Firefox: ✅
  • Opera: ✅
  • IE: ❌
  • Safari: ❌ (Safari hides favicons)

Installation

npm install favorite-icon-dot

Demo

Using

import { FaviconDot } from 'favorite-icon-dot';

const dot = new FaviconDot();

dot.show();

Advanced settings

import { FaviconDot } from 'favorite-icon-dot';

const dot = new FaviconDot({
    backgroundColor: '#ff0000',
    radius: 5,
    strokeColor: '#000',
    faviconSrc: '/my-icon.png',
    positionX: 'right',
    positionY: 'bottom'
});

dot.show();

API

.show()

Show dot in favicon.

import { FaviconDot } from 'favorite-icon-dot';

const dot = new FaviconDot();

dot.show(count);

.hide()

Reset the favicon.

import { FaviconDot } from 'favorite-icon-dot';

const dot = new FaviconDot();

// ...

dot.hide();

License

MIT License

1.2.0

11 months ago

1.1.0

11 months ago

1.0.0

11 months ago

1.2.2

11 months ago

1.2.1

11 months ago

0.6.0

11 months ago

0.5.1

5 years ago

0.5.0

5 years ago

0.4.0

5 years ago