Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/herp-inc/koa-path-canonicalizer
A Koa middleware to redirect to canonicalized path
https://github.com/herp-inc/koa-path-canonicalizer
javascript koa koa-middleware koajs typescript
Last synced: 2 months ago
JSON representation
A Koa middleware to redirect to canonicalized path
- Host: GitHub
- URL: https://github.com/herp-inc/koa-path-canonicalizer
- Owner: herp-inc
- Created: 2018-10-10T18:18:07.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-11T22:34:38.000Z (9 months ago)
- Last Synced: 2024-04-12T04:22:50.596Z (9 months ago)
- Topics: javascript, koa, koa-middleware, koajs, typescript
- Language: TypeScript
- Homepage:
- Size: 439 KB
- Stars: 3
- Watchers: 5
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# koa-path-canonicalizer
[![npm version](https://img.shields.io/npm/v/koa-path-canonicalizer.svg?style=flat-square)](https://www.npmjs.com/package/koa-path-canonicalizer)
[![CircleCI](https://circleci.com/gh/herp-inc/koa-path-canonicalizer.svg?style=shield)](https://circleci.com/gh/herp-inc/koa-path-canonicalizer)A Koa middleware to redirect to canonicalized path
## Installation
```console
$ yarn add koa-path-canonicalizer
```## Usage
```javascript
const Koa = require('koa');
const { pathCanonicalizer } = require('koa-path-canonicalizer');const app = new Koa();
app.use(pathCanonicalizer());
```## License
The MIT License (MIT)