# express-static

> serve static files for express

Latest version **1.2.6** (published 2018-09-25) · MIT license · 0 weekly downloads

## Install

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

Provides the command `express-static`.

## 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 | 1.2.6 |
| Published | 2018-09-25 |
| First published | 2014-10-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 7.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | lsong |
| Maintainers | song940 |
| Keywords | express, express-static |

## Links

- npm: https://www.npmjs.com/package/express-static
- Repository: https://github.com/song940/kelp-static
- Homepage: https://github.com/song940/kelp-static/tree/express
- Issues: https://github.com/song940/kelp-static/issues
- npm.io page: https://npm.io/package/express-static

## Dependencies (1)

- [mime2](https://npm.io/package/mime2.md) latest

## Recent versions

- 1.2.6 (latest) — 2018-09-25
- 1.2.5 — 2017-11-02
- 1.2.4 — 2017-06-29
- 1.2.3 — 2017-06-29
- 1.2.2 — 2017-06-29
- 1.1.0 — 2017-03-15
- 1.0.3 — 2014-11-10
- 1.0.2 — 2014-10-23
- 1.0.1 — 2014-10-10
- 1.0.0 — 2014-10-09

## README

## express-static ![npm](https://badge.fury.io/js/express-static.png)

> serve static files for express

### Installation
````
$ npm install express-static --save
````

### Example
````javascript
const express = require('express');
const serve   = require('express-static');

const app = express();

app.use(serve(__dirname + '/public'));

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

````

### Contributing
- Fork this repo
- Clone your repo
- Install dependencies
- Checkout a feature branch
- Feel free to add your features
- Make sure your features are fully tested
- Open a pull request, and enjoy <3

### MIT license
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 &quot;Software&quot;), 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 &quot;AS IS&quot;, 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-static · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
