Skip to content

Express middleware build on top of caseize to manage json response's and request's params data case

License

Notifications You must be signed in to change notification settings

abdalem/express-caseize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Express-Caseize

Express middleware build on top of caseize to manage json response's and request's params data case


Express-Caseize allow you, using Caseize package, to add a middleware to caseize body and query from requests in order to make your express application compatible with any casing type. To manage response, use caseize package on your data, before sending them.

Code Demo

import expressCaseize from 'express-caseize'
import express from 'express'

const app = express()
const optionnalCasing = 'camelcase' //optionnal, default to 'camelcase', see caseize package for available cases
app.use(expressCaseize(optionnalCasing))

//Response example
import caseize from 'caseize'

data = {/*any data*/}
res.json(caseize(data))

Download & Installation

$ npm i express-caseize

Contributing

Keep it simple. Keep it minimal. Don't put every single feature just because you can.

Authors or Acknowledgments

  • abdalem

License

This project is licensed under the ISC License

About

Express middleware build on top of caseize to manage json response's and request's params data case

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published