# express-favicon

> Favicon middleware for express-like applications

Latest version **2.0.4** (published 2023-02-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install express-favicon
pnpm add express-favicon
yarn add express-favicon
bun add express-favicon
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.4 |
| Published | 2023-02-13 |
| First published | 2014-08-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 0 |
| Unpacked size | 5.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Lsong |
| Maintainers | song940 |
| Keywords | express, favicon |

## Links

- npm: https://www.npmjs.com/package/express-favicon
- Repository: https://github.com/song940/express-favicon
- Issues: https://github.com/song940/express-favicon/issues
- npm.io page: https://npm.io/package/express-favicon

## 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
- [@procore/core-icons](https://npm.io/package/@procore/core-icons.md) — 4.6K weekly downloads
- [@react-md/material-icons](https://npm.io/package/@react-md/material-icons.md) — 1.6K weekly downloads

## Recent versions

- 2.0.4 (latest) — 2023-02-13
- 2.0.3 — 2023-02-13
- 2.0.2 — 2023-02-13
- 2.0.1 — 2018-05-14
- 2.0.0 — 2016-08-30
- 1.0.1 — 2014-08-01
- 1.0.0 — 2014-08-01

## README

# express-favicon

express favicon middleware.

[![build status](https://img.shields.io/travis/song940/express-favicon.svg)](https://travis-ci.org/song940/express-favicon)

[![npm](https://nodei.co/npm/express-favicon.png)](https://nodei.co/npm/express-favicon/)

## Install

```
npm install express-favicon --save
```

## Usage

```js
const express = require('express');
const favicon = require('express-favicon');

const app = express();

app.use(favicon(__dirname + '/public/favicon.png'));

// Add your routes here, etc.

const server = app.listen(3000, function(){
  console.log('server is running at %s .', server.address().port);
});
```


## License

The MIT License (MIT)

Copyright (c) 2014 Lsong

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

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