Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/khusnetdinov/grayscale-favicon

:fork_and_knife: Grayscale favicon for manipulating the favicon and set it to grayscale.
https://github.com/khusnetdinov/grayscale-favicon

bower favicon grayscale npm yarn

Last synced: 27 days ago
JSON representation

:fork_and_knife: Grayscale favicon for manipulating the favicon and set it to grayscale.

Awesome Lists containing this project

README

        

# Grayscale favicon [![Build Status](https://travis-ci.org/khusnetdinov/grayscale-favicon.svg?branch=master)](https://travis-ci.org/khusnetdinov/grayscale-favicon) [![npm](https://img.shields.io/npm/v/grayscale-favicon.svg)]()
Grayscale favicon is tool that convert colorfull favicon to grayscale.

Code was taken from [Ruby Environment Favicon](https://github.com/accessd/rails-env-favicon) and adopted for npm, yarn, bower.

Example of usage, normal and grayscaled icon with library:

![img](http://res.cloudinary.com/dtoqqxqjv/image/upload/v1492368573/github/normal.icon.png)
![img](http://res.cloudinary.com/dtoqqxqjv/image/upload/v1492368573/github/grayscale.icon.png)

## Installation
Several installation options are available:
- install with npm: `npm install [email protected]`
- install with yarn: `yarn add [email protected]`
- install with bower: `bower install [email protected]`

## Usage
If you use node.js builder:
```javascript
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:
```html

window.GrayscaleFavicon.icon();

```

## License

The gem is available as open source under the terms of the [MIT
License](http://opensource.org/licenses/MIT).