# circe-response-api

> ## 安装

Latest version **0.0.3** (published 2017-09-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install circe-response-api
pnpm add circe-response-api
yarn add circe-response-api
bun add circe-response-api
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2017-09-04 |
| First published | 2017-08-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | varHarrie |
| Maintainers | varharrie |

## Links

- npm: https://www.npmjs.com/package/circe-response-api
- Repository: https://github.com/ecfexorg/circe-kits
- Homepage: https://github.com/ecfexorg/circe-kits#readme
- Issues: https://github.com/ecfexorg/circe-kits/issues
- npm.io page: https://npm.io/package/circe-response-api

## Recent versions

- 0.0.3 (latest) — 2017-09-04
- 0.0.2 — 2017-08-24
- 0.0.1 — 2017-08-21

## README

# circe-response-api 拓展api

## 安装

[![NPM](https://nodei.co/npm/circe-response-api.png?downloads=true)](https://nodei.co/npm/circe-response-api/)

## 使用

```typescript
import * as Koa from 'koa'
import responseApi from 'circe-response-api'

const app = new Koa()

responseApi(app.context)

app.use(async () => {
  app.success(data) // 200
  app.fail(data) // 200
  app.error(status) // status
})
```

## API

- function success(data?: string | {[name: string]: any}): any
- function fail(data?: string | {[name: string]: any}): any
- function error(status?: number): void

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