Skip to content

🍴 Grayscale favicon for manipulating the favicon and set it to grayscale.

License

Notifications You must be signed in to change notification settings

khusnetdinov/grayscale-favicon

Repository files navigation

Grayscale favicon Build Status npm

Grayscale favicon is tool that convert colorfull favicon to grayscale.

Code was taken from Ruby Environment Favicon and adopted for npm, yarn, bower.

Example of usage, normal and grayscaled icon with library:

img img

Installation

Several installation options are available:

  • install with npm: npm install grayscale-favicon@1.0.0
  • install with yarn: yarn add grayscale-favicon@1.0.0
  • install with bower: bower install grayscale-favicon@1.0.0

Usage

If you use node.js builder:

import GrayscaleFavicon from 'grayscale-favicon';
// var GrayscaleFavicon = require('grayscale-favicon');

GrayscaleFavicon();

If you use bower or just want to load file from source in html:

<script src="/path/to/grayscale-favicon.js" type="text/javascript"></script>
<script>
  window.GrayscaleFavicon.icon();
</script>

License

The gem is available as open source under the terms of the MIT License.

About

🍴 Grayscale favicon for manipulating the favicon and set it to grayscale.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published