koa-create-context
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

koa-create-context

Create a context for mocking or whatever purpose.

Installation

yarn

Usage

import createContext from "koa-create-context";
 
const context = createContext({
  status: 201,
  body: { data: "Hello World!" }
});

API

createContext(options)

Options

Readme

Keywords

none

Package Sidebar

Install

npm i koa-create-context

Weekly Downloads

2,986

Version

1.0.2

License

MIT

Unpacked Size

4.91 kB

Total Files

8

Last publish

Collaborators

  • jameslnewell