{"id":20198408,"url":"https://github.com/vast-engineering/express-vhost","last_synced_at":"2025-06-24T07:33:35.002Z","repository":{"id":4729432,"uuid":"5878129","full_name":"vast-engineering/express-vhost","owner":"vast-engineering","description":"Improves on express.js middleware for vhost by avoiding expensive regex chains.  This will perform better and scale more than connect vhost.","archived":false,"fork":false,"pushed_at":"2013-08-27T04:04:27.000Z","size":57,"stargazers_count":17,"open_issues_count":0,"forks_count":9,"subscribers_count":38,"default_branch":"master","last_synced_at":"2025-06-07T16:48:50.028Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vast-engineering.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-09-19T21:10:00.000Z","updated_at":"2022-07-19T07:43:44.000Z","dependencies_parsed_at":"2022-09-24T23:52:45.185Z","dependency_job_id":null,"html_url":"https://github.com/vast-engineering/express-vhost","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vast-engineering/express-vhost","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vast-engineering%2Fexpress-vhost","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vast-engineering%2Fexpress-vhost/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vast-engineering%2Fexpress-vhost/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vast-engineering%2Fexpress-vhost/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vast-engineering","download_url":"https://codeload.github.com/vast-engineering/express-vhost/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vast-engineering%2Fexpress-vhost/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261628647,"owners_count":23186868,"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-11-14T04:31:08.587Z","updated_at":"2025-06-24T07:33:34.954Z","avatar_url":"https://github.com/vast-engineering.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"express-vhost\n=============\n\nImproves on express.js middleware for vhost by avoiding expensive regex chains.  This will perform better and scale more than connect vhost.\n\n``` javascript\n\nvar evh = require('express-vhost'),\n\texpress = require('express');\n\nvar appFactory = function(echo) {\n\tvar app = express();\n\tapp.get('/', function(req, res) {\n\t\tres.send(echo);\n\t});\n\n\treturn app;\n};\n\nvar server = express();\nserver.use(evh.vhost());\nserver.listen(port);\n\nevh.register('test1-local', appFactory('test1'));\nvar app2 = appFactory('test2');\nevh.register('test2-local', app2);\nevh.register('*.test2-local', appFactory('test2'));\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvast-engineering%2Fexpress-vhost","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvast-engineering%2Fexpress-vhost","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvast-engineering%2Fexpress-vhost/lists"}