favicon-generator-js
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

favicon-generator

This is a library that takes imageSrc and sizes and return zip file with the following favicons.

How to use it?

Exmaple:

import generateFavicon from "favicon-generator-js";
generateFavicon(imgSrc, [16, 32, 48], 50)
  .then((res) => console.log(res))
  .catch((err) => console.log(err));

Here

imgSrc = string type value. // src of an image; [] = This array contains all the desired sizes. 3rd argument = This is the roundness value of the favicon. it must be a number and range is 0-100.

Package Sidebar

Install

npm i favicon-generator-js

Weekly Downloads

0

Version

1.0.5

License

MIT

Unpacked Size

3.63 kB

Total Files

3

Last publish

Collaborators

  • alamin_ahammed