Skip to content

pixel-point/favpie

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
January 21, 2023 18:56
January 21, 2023 18:56
January 21, 2023 18:56
January 22, 2023 12:15
January 22, 2023 11:57
January 22, 2023 12:15
January 22, 2023 12:15

Favpie - CLI to generate favicons and webmanifest.

npm

Favpie - the solution for generating favicons in all necessary sizes, creating a webmanifest, and providing a piece of CSS for easy integration into your project.

Features

πŸš€Β  Lightning-fast image creation and optimization thanks to the use of the Sharp library

πŸƒβ€ Convenient CLI interface, allowing you to run the tool with a single NPX command

πŸ’ͺ Effortless creation of webmanifests, making it easier than ever to get your project ready for the web.

Usage

npx favpie <file> [options]
Arguments:
  file                      *.png, *.jpg, *.jpeg image file

Options:
  -o, --output <directory>  output directory(default: current directory)
  -ap, --app-name <name>    app name used in webmanifest(default: Your App Name)
  -sn, --short-name <name>  short name used in webmanifest(default: Your App Name)
  -h, --help                display help for command

Example:

npx favpie favicon-original.png -o ./favicon -ap "Favpie" -sn "Favpie"

Output:

<link rel="icon" type="image/png" href="/favicon-32x32.png">
<link rel="apple-touch-icon" sizes="48x48" href="/favicon-48x48.png">
<link rel="apple-touch-icon" sizes="72x72" href="/favicon-72x72.png">
<link rel="apple-touch-icon" sizes="96x96" href="/favicon-96x96.png">
<link rel="apple-touch-icon" sizes="256x256" href="/favicon-256x256.png">
<link rel="apple-touch-icon" sizes="384x384" href="/favicon-384x384.png">
<link rel="apple-touch-icon" sizes="512x512" href="/favicon-512x512.png">
<link rel="manifest" href="/manifest.webmanifest" crossorigin="anonymous">

About

Generate favicons and webmanifest with a CLI

Resources

Stars

Watchers

Forks