# koa-create-context

> Create a context for mocking or whatever purpose.

Latest version **1.0.2** (published 2019-02-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install koa-create-context
pnpm add koa-create-context
yarn add koa-create-context
bun add koa-create-context
```

## 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 | 1.0.2 |
| Published | 2019-02-18 |
| First published | 2019-02-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | James Newell |
| Maintainers | jameslnewell |

## Links

- npm: https://www.npmjs.com/package/koa-create-context
- Repository: https://github.com/jameslnewell/koa
- Homepage: https://github.com/jameslnewell/koa#readme
- Issues: https://github.com/jameslnewell/koa/issues
- npm.io page: https://npm.io/package/koa-create-context

## Dependencies (2)

- [mock-req](https://npm.io/package/mock-req.md) ^0.2.0
- [mock-res](https://npm.io/package/mock-res.md) ^0.5.0

## Recent versions

- 1.0.2 (latest) — 2019-02-18
- 1.0.1 — 2019-02-18
- 1.0.0 — 2019-02-18

## README

# koa-create-context

Create a context for mocking or whatever purpose.

## Installation

```
yarn
```

## Usage

```js
import createContext from "koa-create-context";

const context = createContext({
  status: 201,
  body: { data: "Hello World!" }
});
```

## API

### `createContext(options)`

#### Options

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