express icon indicating copy to clipboard operation
express copied to clipboard

Provision to pass json replacer with a set of options.

Open prkeshri opened this issue 4 years ago • 2 comments

app.set('json replacer', { fn: function(key, value, {req, res}) { ...}, reqRes: true }); This is another way. One of the options is reqRes : true. In this case, the replacer function is called with req and res objects, which can be used to customise the replacement process according to the request.

prkeshri avatar Jun 13 '19 20:06 prkeshri

Please consider now. Fixed

prkeshri avatar Jun 14 '19 20:06 prkeshri

Updated the test case , fixed bug.

prkeshri avatar Oct 08 '21 13:10 prkeshri