A Koa middleware to redirect to canonicalized path
$ yarn add koa-path-canonicalizer
const Koa = require('koa');
const { pathCanonicalizer } = require('koa-path-canonicalizer');
const app = new Koa();
app.use(pathCanonicalizer());
The MIT License (MIT)