{"id":21853520,"url":"https://github.com/abhi11210646/mongoose-sanitize","last_synced_at":"2025-07-30T11:12:58.269Z","repository":{"id":34883308,"uuid":"186813253","full_name":"abhi11210646/mongoose-sanitize","owner":"abhi11210646","description":"Mongoose plugin that sanitizes input fields to prevent injection attacks, with options to include or skip specific fields.","archived":false,"fork":false,"pushed_at":"2025-01-17T05:28:32.000Z","size":100,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-16T09:33:06.778Z","etag":null,"topics":["mongoose","sanitizer","traverse"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/mongoose-sanitize","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abhi11210646.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-05-15T11:32:50.000Z","updated_at":"2025-02-14T15:05:46.000Z","dependencies_parsed_at":"2024-08-23T18:43:24.863Z","dependency_job_id":"9e3bd3b8-83e0-413f-86a9-220d2e57b80b","html_url":"https://github.com/abhi11210646/mongoose-sanitize","commit_stats":{"total_commits":2,"total_committers":2,"mean_commits":1.0,"dds":0.5,"last_synced_commit":"ba7bf8542185ca0d1d68c65633e9eecff8dbb8e3"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/abhi11210646/mongoose-sanitize","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhi11210646%2Fmongoose-sanitize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhi11210646%2Fmongoose-sanitize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhi11210646%2Fmongoose-sanitize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhi11210646%2Fmongoose-sanitize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abhi11210646","download_url":"https://codeload.github.com/abhi11210646/mongoose-sanitize/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhi11210646%2Fmongoose-sanitize/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265742760,"owners_count":23820905,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mongoose","sanitizer","traverse"],"created_at":"2024-11-28T01:25:32.291Z","updated_at":"2025-07-30T11:12:58.245Z","avatar_url":"https://github.com/abhi11210646.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n## Usage\n\n```javascript\nconst sanitizer = require('mongoose-sanitize');\n\nmongooseSchema.plugin(sanitizer, options);  // `options` optional field\n\n```\n\n### Options\n\n```\nlet options = { skip:[], include:[] }\n```\n - **Skip** Array indicating which fields should be excluded from being sanitized. If omitted or empty, every field in the document will be sanitized.\n - **Include** Array indicating which fields should be included to be sanitized. If omitted or empty, every field in the document will be sanitized.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhi11210646%2Fmongoose-sanitize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabhi11210646%2Fmongoose-sanitize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhi11210646%2Fmongoose-sanitize/lists"}