{"id":16060535,"url":"https://github.com/floatdrop/express-mongo-db","last_synced_at":"2025-03-16T07:32:35.233Z","repository":{"id":13378879,"uuid":"16066807","full_name":"floatdrop/express-mongo-db","owner":"floatdrop","description":"Get db connection in request object","archived":false,"fork":false,"pushed_at":"2020-04-13T15:58:49.000Z","size":36,"stargazers_count":79,"open_issues_count":7,"forks_count":17,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-14T01:31:41.091Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/floatdrop.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":"2014-01-20T09:50:44.000Z","updated_at":"2024-08-07T02:17:24.000Z","dependencies_parsed_at":"2022-08-23T00:00:25.924Z","dependency_job_id":null,"html_url":"https://github.com/floatdrop/express-mongo-db","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatdrop%2Fexpress-mongo-db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatdrop%2Fexpress-mongo-db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatdrop%2Fexpress-mongo-db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatdrop%2Fexpress-mongo-db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/floatdrop","download_url":"https://codeload.github.com/floatdrop/express-mongo-db/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243507736,"owners_count":20301885,"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-09T04:05:13.422Z","updated_at":"2025-03-16T07:32:34.823Z","avatar_url":"https://github.com/floatdrop.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# express-mongo-db [![Build Status](https://travis-ci.org/floatdrop/express-mongo-db.svg?branch=master)](https://travis-ci.org/floatdrop/express-mongo-db)\n\n\u003e Get db connection in request\n\n\n## Install\n\n```\n$ npm install --save express-mongo-db\n```\n\n\n## Usage\n\n```js\nvar app = require('express')();\n\nvar expressMongoDb = require('express-mongo-db');\napp.use(expressMongoDb('mongodb://localhost/test'));\n\napp.get('/', function (req, res, next) {\n\treq.db // =\u003e Db object\n});\n```\n\n\n## API\n\n### expressMongoDb(uri, [options])\n\n#### uri\n\n*Required*  \nType: `string`\n\n[Connection string uri](http://docs.mongodb.org/manual/reference/connection-string/).\n\n#### options\n\nAll options from [MongoClient](http://mongodb.github.io/node-mongodb-native/2.0/api/MongoClient.html) are accepted as well.\n\n##### property\n\nType: `String`  \nDefault: `db`\n\nProperty on `request` object in which db connection will be stored.\n\n\n## License\n\nMIT © [Vsevolod Strukchinsky](http://github.com/floatdrop)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloatdrop%2Fexpress-mongo-db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffloatdrop%2Fexpress-mongo-db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloatdrop%2Fexpress-mongo-db/lists"}