---
title: "faviconize"
description: "🎆 Library and CLI responsible for generating favicons in all formats and providing easy way to integrate them into your application"
canonical_url: "https://neg4n.dev/projects/faviconize"
md_url: "https://neg4n.dev/projects/faviconize.md"
---

# faviconize

## Resources

- [GitHub](https://github.com/neg4n/faviconize)
- [npm](https://www.npmjs.com/package/faviconize)

## README

faviconizeLibrary and CLI for generating favicons in all formatsMotivationI 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.Installingnpm i faviconize -SYou will probably want to install it as devDependency :DUsageimport { 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()CLIInstallingnpm i faviconize-cli -gUsageRun faviconize   in your terminalEnding speechThis project is licensed under the MIT license.
All contributions are welcome.
