neg4n / faviconize

πŸŽ† Library and CLI responsible for generating favicons in all formats and providing easy way to integrate them into your application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

faviconize

Library and CLI for generating favicons in all formats

Motivation

I wanted to create simpler and more intuitive replacement for existing project with the same purpose - Real Favicon Generator. RFG is really good project but sadly it works only online, its API for Node.js makes HTTP requests under the hood instead of working locally and whole generator seems a little bit overcomplicated for me, personally.

faviconize repository contains both CLI application and library source.

Library Β· version types codecov

Installing

npm i faviconize -S

You will probably want to install it as devDependency :D

Usage

import { faviconize } from 'faviconize'

async function run() {
  await faviconize('path/to/image.jpg')
  // ... or with custom output icon types
  await faviconize('path/to/other-image.jpg', ['apple-touch-icon', 'msapplication-TileImage'])
  // ... or with all icon types and custom output directory
  await faviconize('path/to/another-image.jpg', null, '.')
}

run()

CLI Β· version

Installing

npm i faviconize-cli -g

Usage

Run faviconize <path-to-icon> in your terminal

Ending speech

This project is licensed under the MIT license. All contributions are welcome.

About

πŸŽ† Library and CLI responsible for generating favicons in all formats and providing easy way to integrate them into your application

License:MIT License


Languages

Language:TypeScript 83.4%Language:JavaScript 16.6%