mongoose-sanitize
1.2.0 • Public • Published
const sanitizer = require('mongoose-sanitize');
mongooseSchema.plugin(sanitizer, options); // `options` optional field
let options = { skip:[], include:[] }
-
Skip Array indicating which fields should be excluded from being sanitized. If omitted or empty, every field in the document will be sanitized.
-
Include Array indicating which fields should be included to be sanitized. If omitted or empty, every field in the document will be sanitized.
Versions
Current Tags
- VersionDownloads (Last 7 Days)
- 1.2.0
324
Version History
Package Sidebar
Install
Weekly Downloads