# @koex/cors

> cors for koa extend

Latest version **0.0.2** (published 2019-03-16) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2019-03-16 |
| First published | 2018-12-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 7.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Zero |
| Maintainers | uniquecolesmith |

## Links

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

## Dependencies (1)

- [@zcorky/is](https://npm.io/package/@zcorky/is.md) ^1.0.1

## Recent versions

- 0.0.2 (latest) — 2019-03-16
- 0.0.1 — 2018-12-11

## README

# cors

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

> cors for koa extend.

### Install

```
$ npm install @koex/cors
```

### Usage

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

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

app.use(cors());

app.use(ctx => {
  ctx.body = 'Hello, World!';
});

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

### Related
* [koa-cors](https://github.com/koajs/cors)

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