Skip to content

herp-inc/koa-path-canonicalizer

Repository files navigation

koa-path-canonicalizer

npm version CircleCI

A Koa middleware to redirect to canonicalized path

Installation

$ yarn add koa-path-canonicalizer

Usage

const Koa = require('koa');
const { pathCanonicalizer } = require('koa-path-canonicalizer');

const app = new Koa();

app.use(pathCanonicalizer());

License

The MIT License (MIT)