# koa-myth

> Wraps a myth or rework instance into a koa middleware.

Latest version **1.0.1** (published 2014-12-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install koa-myth
pnpm add koa-myth
yarn add koa-myth
bun add koa-myth
```

## 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.0.1 |
| Published | 2014-12-21 |
| First published | 2014-12-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Maintainers | yoshuawuyts |
| Keywords | koa, myth, rework, http, handler |

## Links

- npm: https://www.npmjs.com/package/koa-myth
- Repository: https://github.com/yoshuawuyts/koa-myth
- Issues: https://github.com/yoshuawuyts/koa-myth/issues
- npm.io page: https://npm.io/package/koa-myth

## Dependencies (1)

- [myth-request](https://npm.io/package/myth-request.md) ^1.0.3

## Recent versions

- 1.0.1 (latest) — 2014-12-21
- 1.0.0 — 2014-12-20

## README

# koa-myth
[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]
[![Downloads][downloads-image]][downloads-url]

Wraps a [myth][myth] or [rework][rework] instance into a koa middleware.

## Installation
```bash
$ npm install koa-myth
```

## Usage
```js
const km     = require('koa-myth')
const rework = require('rework')
const http   = require('http')
const myth   = require('myth')
const koa    = require('koa')
const fs     = require('fs')

const port = process.env.port || 1337
const app  = koa()

const css    = fs.readFileSync('index.css', 'utf8')
const bundle = rework(css).use(myth())
app.use(km(bundle))

http.createServer(app.callback()).listen(port)
```

## See Also
- [myth-request](https://github.com/yoshuawuyts/myth-request)
- [koa-watchify](https://github.com/yoshuawuyts/koa-watchify)

## License
[MIT](https://tldrlegal.com/license/mit-license)

[npm-image]: https://img.shields.io/npm/v/koa-myth.svg?style=flat-square
[npm-url]: https://npmjs.org/package/koa-myth
[travis-image]: https://img.shields.io/travis/yoshuawuyts/koa-myth.svg?style=flat-square
[travis-url]: https://travis-ci.org/yoshuawuyts/koa-myth
[coveralls-image]: https://img.shields.io/coveralls/yoshuawuyts/koa-myth.svg?style=flat-square
[coveralls-url]: https://coveralls.io/r/yoshuawuyts/koa-myth?branch=master
[downloads-image]: http://img.shields.io/npm/dm/koa-myth.svg?style=flat-square
[downloads-url]: https://npmjs.org/package/koa-myth

[myth]: https://github.com/segmentio/myth
[rework]: https://github.com/reworkcss/rework

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