express-mongo-sanitize
express-mongo-sanitize copied to clipboard
Adding onSanitize as an option for non middleware usage
It will be good if we can have onSanitize callback for non middleware usage
The existing sanitize standalone function could be changed to return { target, isSanitized } but that would be a breaking change. Happy to implement and bump a major version if it would be useful.