feathers-transform-hook
This is experiment. Work in progress!
Feathers hook for transform hook.data parameters with string.js
const transformHook = app
Example
Look example folder for more information.
Test request:
curl -H "Accept: application/json" -d "title=Hello world&username= adM in" -X POST http://localhost:3030/users
Server response example:
{
"title": "Hello world",
"username": "admin",
"slug": "hello-world"
}
P.S.
Now, this hook is just a convenient wrapper over string.js. Therefore, all the same, you can easily do without this hook.
const marked = const S = app;