# @koex/static

> static cache for koa extend

Latest version **1.0.2** (published 2022-04-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install @koex/static
pnpm add @koex/static
yarn add @koex/static
bun add @koex/static
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2022-04-25 |
| First published | 2018-12-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 6 |
| Unpacked size | 18.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Zero |
| Maintainers | uniquecolesmith |

## Links

- npm: https://www.npmjs.com/package/@koex/static
- Repository: https://github.com/koexjs/static
- Homepage: https://github.com/koexjs/static#readme
- Issues: https://github.com/koexjs/static/issues
- npm.io page: https://npm.io/package/@koex/static

## Dependencies (6)

- [mz](https://npm.io/package/mz.md) ^2.7.0
- [koa-range](https://npm.io/package/koa-range.md) ^0.3.0
- [mime-types](https://npm.io/package/mime-types.md) ^2.1.21
- [koa-compose](https://npm.io/package/koa-compose.md) ^4.1.0
- [compressible](https://npm.io/package/compressible.md) ^2.0.15
- [stream-wormhole](https://npm.io/package/stream-wormhole.md) ^1.1.0

## Recent versions

- 1.0.2 (latest) — 2022-04-25
- 1.0.1 — 2022-04-25
- 0.13.36 — 2021-10-10
- 0.13.35 — 2021-07-02
- 0.13.29 — 2021-05-13
- 0.13.28 — 2021-05-13
- 0.13.24 — 2021-05-13
- 0.13.23 — 2021-05-13
- 0.13.13 — 2021-05-02
- 0.13.7 — 2021-05-01
- 0.13.6 — 2021-05-01
- 0.13.5 — 2021-05-01
- 0.13.4 — 2021-05-01
- 0.13.3 — 2021-01-28
- 0.13.2 — 2020-12-17
- … 40 more at https://npm.io/package/@koex/static/versions

## README

# static

[![NPM version](https://img.shields.io/npm/v/@koex/static.svg?style=flat)](https://www.npmjs.com/package/@koex/static)
[![Coverage Status](https://img.shields.io/coveralls/koexjs/static.svg?style=flat)](https://coveralls.io/r/koexjs/static)
[![Dependencies](https://img.shields.io/david/koexjs/static.svg)](https://github.com/koexjs/static)
[![Build Status](https://travis-ci.com/koexjs/static.svg?branch=master)](https://travis-ci.com/koexjs/static)
![license](https://img.shields.io/github/license/koexjs/static.svg)
[![issues](https://img.shields.io/github/issues/koexjs/static.svg)](https://github.com/koexjs/static/issues)

> static for koa extend. used as public assets or static assets.

### Install

```
$ npm install @koex/static
```

### Usage

```javascript
// See more in test
import staticCache from '@koex/static';

import * as Koa from 'koa';
const app = new Koa();

app.use(staticCache('/static', {
  dir: path.join(__dirname, './public'),
}));

app.listen(8000, '0.0.0.0', () => {
  console.log('koa server start at port: 8000');
});
```

### Related
* [koa-static-cache](https://github.com/koajs/static-cache)
* [express.static/serve-static](https://github.com/expressjs/serve-static)

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