Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/khusnetdinov/grayscale-favicon
- Owner: khusnetdinov
- License: mit
- Created: 2017-04-14T10:01:33.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-29T22:37:02.000Z (almost 7 years ago)
- Last Synced: 2024-10-03T17:34:37.327Z (about 1 month ago)
- Topics: bower, favicon, grayscale, npm, yarn
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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:
```htmlwindow.GrayscaleFavicon.icon();
```
## License
The gem is available as open source under the terms of the [MIT
License](http://opensource.org/licenses/MIT).