{"id":15354908,"url":"https://github.com/capaj/mongoose-schema-serializer","last_synced_at":"2025-06-21T06:41:37.557Z","repository":{"id":57302252,"uuid":"50235523","full_name":"capaj/mongoose-schema-serializer","owner":"capaj","description":"serialize and deserialize your mongoose schema with this","archived":false,"fork":false,"pushed_at":"2016-02-05T13:22:38.000Z","size":6,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-04T22:15:15.436Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/capaj.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}},"created_at":"2016-01-23T11:27:05.000Z","updated_at":"2021-08-14T12:07:42.000Z","dependencies_parsed_at":"2022-09-09T15:01:06.584Z","dependency_job_id":null,"html_url":"https://github.com/capaj/mongoose-schema-serializer","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/capaj/mongoose-schema-serializer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capaj%2Fmongoose-schema-serializer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capaj%2Fmongoose-schema-serializer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capaj%2Fmongoose-schema-serializer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capaj%2Fmongoose-schema-serializer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/capaj","download_url":"https://codeload.github.com/capaj/mongoose-schema-serializer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capaj%2Fmongoose-schema-serializer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259726433,"owners_count":22902175,"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":[],"created_at":"2024-10-01T12:21:37.412Z","updated_at":"2025-06-21T06:41:32.532Z","avatar_url":"https://github.com/capaj.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mongoose-schema-serializer\nserialize and deserialize your mongoose schema with this simple JSON stringifier/reviver\n\nUseful, when you need to send your schema over the network-for example to your admin frontend.\n\n## Install\n\n```\nnpm i mongoose-schema-serializer\n```\n\n## Usage\n```javascript\nvar Schema = mongoose.Schema  //on the frontend you can provide an object with same structure to satisfy it\nconst mss = require('../index')(Schema)\n// mss2 one will deserialize ObjectId and Mixed as strings.\nconst mss2 = require('../index')()\nconst json = mss.stringify(schema)\n// then on frontend\nconst schema = mss2.parse(json)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcapaj%2Fmongoose-schema-serializer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcapaj%2Fmongoose-schema-serializer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcapaj%2Fmongoose-schema-serializer/lists"}