{"id":15019935,"url":"https://github.com/mongoosejs/mongoose-regexp","last_synced_at":"2025-10-24T20:30:44.964Z","repository":{"id":7078268,"uuid":"8366666","full_name":"mongoosejs/mongoose-regexp","owner":"mongoosejs","description":"Provides mongoose support for storing RegExp","archived":false,"fork":false,"pushed_at":"2014-10-08T15:24:45.000Z","size":125,"stargazers_count":14,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-31T03:55:21.548Z","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/mongoosejs.png","metadata":{"files":{"readme":"README.md","changelog":"History.md","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":"2013-02-22T21:54:23.000Z","updated_at":"2023-01-17T01:25:01.000Z","dependencies_parsed_at":"2022-09-07T09:10:26.389Z","dependency_job_id":null,"html_url":"https://github.com/mongoosejs/mongoose-regexp","commit_stats":null,"previous_names":["aheckmann/mongoose-regexp"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongoosejs%2Fmongoose-regexp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongoosejs%2Fmongoose-regexp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongoosejs%2Fmongoose-regexp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongoosejs%2Fmongoose-regexp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mongoosejs","download_url":"https://codeload.github.com/mongoosejs/mongoose-regexp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238030288,"owners_count":19404859,"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-09-24T19:54:20.355Z","updated_at":"2025-10-24T20:30:44.689Z","avatar_url":"https://github.com/mongoosejs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#mongoose-regexp\n=================\n\nProvides [Mongoose](http://mongoosejs.com) support for storing `RegExp`.\n\n[![Build Status](https://travis-ci.org/aheckmann/mongoose-regexp.png?branch=master)](http://travis-ci.org/aheckmann/mongoose-regexp)\n\nExample:\n\n```js\nvar mongoose = require('mongoose')\nrequire('mongoose-regexp')(mongoose);\n\nvar mySchema = Schema({ reg: RegExp });\nvar M = mongoose.model('RegExp', mySchema);\n\nvar m = new M;\nm.reg = /^mongodb/i;\nm.save(function (err) {\n  M.findById(m._id, function (err, doc) {\n    var ok = doc.reg.test(\"MongoDB allows storing RegExps!\");\n    console.log(ok); // true\n  });\n});\n```\n\n### install\n\n```\nnpm install mongoose-regexp\n```\n\n### compatibility with other languages\n\nThere are no guarantees that `RegExp`s created and stored using another driver and retreived using this\nmodule will compile or behave the same as originally intended. This module works best when it is known\nthat `RegExp`s stored and retrevied were generated in Node.js.\n\n[LICENSE](https://github.com/aheckmann/mongoose-regexp/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmongoosejs%2Fmongoose-regexp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmongoosejs%2Fmongoose-regexp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmongoosejs%2Fmongoose-regexp/lists"}