# @gorner/broccoli-favicon

> Generate favicons and HTML using Favicons package

Latest version **4.0.0-alpha.1** (published 2023-09-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install @gorner/broccoli-favicon
pnpm add @gorner/broccoli-favicon
yarn add @gorner/broccoli-favicon
bun add @gorner/broccoli-favicon
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.0.0-alpha.1 |
| Published | 2023-09-25 |
| First published | 2023-09-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | ^14.0.0 \|\| ^16.0.0 \|\| >=18.0.0 |
| Dependencies | 5 |
| Unpacked size | 6.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | gorner |
| Keywords | broccoli, plugin, favicons |

## Links

- npm: https://www.npmjs.com/package/@gorner/broccoli-favicon
- Repository: https://github.com/gorner/broccoli-favicon
- Issues: https://github.com/gorner/broccoli-favicon/issues
- npm.io page: https://npm.io/package/@gorner/broccoli-favicon

## Dependencies (5)

- [favicons](https://npm.io/package/favicons.md) ^7.0.0
- [himalaya](https://npm.io/package/himalaya.md) ^1.1.0
- [lodash.merge](https://npm.io/package/lodash.merge.md) ^4.6.2
- [heimdalljs-logger](https://npm.io/package/heimdalljs-logger.md) ^0.1.10
- [broccoli-caching-writer](https://npm.io/package/broccoli-caching-writer.md) ^3.0.3

## Alternatives

- [@fortawesome/react-fontawesome](https://npm.io/package/@fortawesome/react-fontawesome.md) — 2.2M weekly downloads
- [roboto-fontface](https://npm.io/package/roboto-fontface.md) — 196.0K weekly downloads
- [@react-native-vector-icons/common](https://npm.io/package/@react-native-vector-icons/common.md) — 150.4K weekly downloads
- [stockfish](https://npm.io/package/stockfish.md) — 27.0K weekly downloads
- [@procore/core-icons](https://npm.io/package/@procore/core-icons.md) — 4.6K weekly downloads

## Recent versions

- 4.0.0-alpha.1 (latest) — 2023-09-25

## README

# @gorner/broccoli-favicon

<!--
[![Build Status](https://travis-ci.org/davewasmer/broccoli-favicon.svg?branch=master)](https://travis-ci.org/davewasmer/broccoli-favicon)
[![Dependency Status](https://david-dm.org/davewasmer/broccoli-favicon.svg)](https://david-dm.org/davewasmer/broccoli-favicon.svg)
-->

Fork of @davewasmer's [`broccoli-favicon`](https://github.com/davewasmer/broccoli-favicon) that has been updated for `favicons` v7.

Takes a single `favicon.png` and outputs various sizes and file formats for favicons for different platforms and devices. Uses [`favicons`](https://github.com/haydenbleasel/favicons), see that project's documentation for details on the full range of support favicon generation.

## Usage

Default configuration values are show below:

```js
import Favicon from "broccoli-favicon";

const outputNode = new Favicon(nodeWithFaviconImage, {
  iconPath: "favicon.png", // The path to the source image in 'nodeWithFaviconImage'

  onSuccess(htmlArray, rawObject) {
    // this method is called once the generator finishes;
    // the first parameter is an array of strings containing
    // the appropriate HTML to use the generated icons
    // and the second argument is a raw object containing serialized html objects
  },

  // The favicons config object is passed directly to the underlying `Favicons` module
  // See https://github.com/haydenbleasel/favicons for details and defaults
  faviconsConfig: {},
});
```

---
_Source: https://npm.io/package/@gorner/broccoli-favicon · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
