Skip to content

zzswang/express-humps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

express-humps

Build Status

This express middleware is born for prettifing request and reponse json.

Each key from request body and query will change format to camelcase. And send response back with snakecase.

only if

  1. If we want json's keys in snakecase.
{
  "some_prop": "value"
}
  1. We want to use camelcase in javascript code.
const object = {
  someProp: 'value',
};

Then you should use this middleware.

usage

npm install express-humps --save
import humps from 'express-humps';

app.use(humps());

About

express middleware of humps

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published