pwa-icon-gen

1.0.3 • Public • Published

pwa-icon-gen

A CLI tool for generating Progressive Web App icons of different sizes in PNG format from an existing image. Built using Ink, React, and Sharp.

A list of image types supported by Sharp can be found here. And below:

  • JPEG
  • PNG
  • WebP
  • TIFF
  • GIF
  • SVG

Usage

Installation

To install pwa-icon-gen you can use yarn or npm.

yarn global add pwa-icon-gen
 
# or 
 
npm install --global pwa-icon-gen

Example

pwa-icon-gen logo.svg --out=public/icons/
 
# custom sizes 
pwa-icon-gen logo.svg --out=public/icons/ --sizes=50,100,150,200

All CLI Options

Usage: pwa-icon-gen <icon-path> --out=<out-dir> [options]
       pwa-icon-gen logo.svg --out=public/icons/
       pwa-icon-gen logo.png --out=public/ --sizes=72,144,512

Options:
    --out	Destination directory for the icons.
    --sizes	The different sizes to be generated.
        Format: comma separated list (i.e. 128,256,512)

Package Sidebar

Install

npm i pwa-icon-gen

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

6.97 kB

Total Files

6

Last publish

Collaborators

  • chbphone55