{"id":13611359,"url":"https://github.com/skratchdot/mongodb-wild","last_synced_at":"2025-03-15T18:19:34.445Z","repository":{"id":3158842,"uuid":"4189243","full_name":"skratchdot/mongodb-wild","owner":"skratchdot","description":"Adds a wildcard search to the mongodb shell","archived":false,"fork":false,"pushed_at":"2014-04-25T04:43:22.000Z","size":132,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-22T07:51:34.736Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://skratchdot.github.com/mongodb-wild/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skratchdot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-05-01T03:09:45.000Z","updated_at":"2016-12-06T11:24:44.000Z","dependencies_parsed_at":"2022-08-19T06:21:43.602Z","dependency_job_id":null,"html_url":"https://github.com/skratchdot/mongodb-wild","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skratchdot%2Fmongodb-wild","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skratchdot%2Fmongodb-wild/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skratchdot%2Fmongodb-wild/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skratchdot%2Fmongodb-wild/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skratchdot","download_url":"https://codeload.github.com/skratchdot/mongodb-wild/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243770285,"owners_count":20345276,"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-08-01T19:01:54.530Z","updated_at":"2025-03-15T18:19:34.426Z","avatar_url":"https://github.com/skratchdot.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# MongoDB - wild.js #\n\n[Project Page](http://skratchdot.com/projects/mongodb-wild/)  \n[Source Code](https://github.com/skratchdot/mongodb-wild/)  \n[Issues](https://github.com/skratchdot/mongodb-wild/issues/)  \n\n## Description: ##\n\nAdds a wildcard search to the mongodb shell.  You can run the new\nwild() function on a collection, or on a query result.\nThe search is performed by converting each document to json,\nand then running a regex on that json.\n\n## Usage: ##\n\n```javascript\n// Search entire users collection for Bob\ndb.users.wild('Bob');\ndb.users.wild(/Bob/gi);\ndb.users.find().wild('Bob');\n\n// Search for exact values of 'Bob'\ndb.users.wild(': \"Bob\"');\n\n// Search for exact keys called 'Bob'\ndb.users.wild('\"Bob\" :');\n\n// Search for documents containing 'Bob', filtering by last name of 'Smith'\ndb.users.wild('Bob', {'name.last' : 'Smith'});\ndb.users.find({'name.last' : 'Smith'}).wild('Bob');\n```\n\n## Installation: ##\n\nDownload: [wild.js](https://github.com/skratchdot/mongodb-wild/raw/master/wild.js)\n\n### Option 1 ###\n\nAdd this script to your .mongorc.js file.  \n\nSee: [http://www.mongodb.org/display/DOCS/Overview+-+The+MongoDB+Interactive+Shell#Overview-TheMongoDBInteractiveShell-.mongorc.js](http://www.mongodb.org/display/DOCS/Overview+-+The+MongoDB+Interactive+Shell#Overview-TheMongoDBInteractiveShell-.mongorc.js)\n\n### Option 2 ###\n\nStart the shell after executing this script  \n\n    mongo --shell wild.js\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskratchdot%2Fmongodb-wild","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskratchdot%2Fmongodb-wild","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskratchdot%2Fmongodb-wild/lists"}