
Security News
Meet Socket at Black Hat Europe and BSides London 2025
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.
express-camelcase-middleware
Advanced tools
Used to convert api requests to/from camelcase/snakecase depending on your requirements.
There are 2 middlewares with this package.
snakeCaseHandler will handle conversions to and from snake_case where camelCase is used internally in an app, with snake_case being supported by the API. The handler accepts all options from snakecase-keys.
camelCaseHandler will handle conversions to and from camelCase where snake_case is used internally in an app, with camelCase being supported by the API. The handler accepts all options from camelcase-keys.
npm i express-camelcase-middleware
You must import the middleware, and then add it to your express app as shown below. It is required to also include express.json() as well as express.urlencode({extended:true}) since these are used by express to handle conversions of the requests.
Recommended options used are {deep: true}
import { camelCaseHandler } from express-camelcase-middleware
const app = express()
app.use(express.json())
app.use(express.urlencoded({extended: true}))
app.use(camelCaseHandler(options))
Recommended options used are {deep: true}
import { snakeCaseHandler } from express-camelcase-middleware
const app = express()
app.use(express.json())
app.use(express.urlencoded({extended: true}))
app.use(snakeCaseHandler(options))
FAQs
Convert requests to and from snake_case to camelCase
We found that express-camelcase-middleware demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.