koa-rewrite-host
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

koa-rewrite-host

CircleCI

URL rewrite middleware for koa depending on host.

Notice: only supports koa@2.

Installation

$ npm install koa-rewrite-host

Examples

Rewrite using a when host is localhost, rewriting /home to /localhost/home.

app.use(rewrite("localhost:3000", "/localhost"));

License

MIT

Package Sidebar

Install

npm i koa-rewrite-host

Weekly Downloads

1

Version

1.0.4

License

MIT

Unpacked Size

135 kB

Total Files

13

Last publish

Collaborators

  • ulrikstrid