Hapi.js Query Params (Plugin)
Hapi.js Plugin for convert query params to
- camel cases
- lower case
- all caps
- first charecter CAP
WHY?
- we had to support different query params from old clients so we want to convert all of them to lower case
How?
// serverserver
// correct way to pass optionsserver // from user_name=doron2402 => userName=doron2402 // user_name will be deleted
** IMPORTANT: options must have only ONE param you can camel case and all caps,
Github
Check the GitHub issues.