# koa-proxy **Repository Path**: mirrors_svenanders/koa-proxy ## Basic Information - **Project Name**: koa-proxy - **Description**: A fantastic proxier for Koa 2 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-18 - **Last Updated**: 2026-05-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Koa 2 Proxy ## Installation Get it from npm with ```npm install --save @svenardo/koa-proxy``` ## Testing ```javascript const koaProxy = require('@svenardo/koa-proxy'); const Router = require('koa-router'); const router = new Router(); router.get("/octocat*", async ctx => ctx.body = await koaProxy(ctx, { target: 'https://api.github.com/users', changeOrigin: true }) .then(res => res) .catch(err => handleError(err)) ) ``` ## License ISC