New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

koa-lowercase

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-lowercase

Simple lowercasing middleware for Koa 2.

  • 2.1.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

koa-lowercase

Simple lowercasing middleware for Koa 2.

Donate


Installation:

npm i -S koa-lowercase

Usage:

import Koa from 'koa'
import lower from 'koa-lowercase'

const app = new Koa()

app.use(lower)
// other middlewares, routes, etc.

app.listen(process.env.PORT || 3000)
console.log(`Serving on ${port}`)

POST, HEAD, PUT, and DELETE are not lowercased.

Querystrings are not lowercased.

Please note this module is for Koa 2. If you're using Koa 1, consider this module or this one.

LICENSE

Keywords

FAQs

Package last updated on 10 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc