{"_id":"express-namespace","_rev":"25-4f8731b5f6dcc215dfed9911e79df1ec","name":"express-namespace","description":"Express namespaced routes extension","dist-tags":{"latest":"0.1.1"},"versions":{"0.0.1":{"name":"express-namespace","description":"Express namespaced routes extension","version":"0.0.1","author":{"name":"TJ Holowaychuk","email":"tj@vision-media.ca"},"keywords":["express"],"main":"index","engines":{"node":">= 0.2.0"},"_id":"express-namespace@0.0.1","_engineSupported":true,"_npmVersion":"0.2.18","_nodeVersion":"v0.2.6","directories":{},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"87f187450fe4689188afc53be3890f90b2911b01","tarball":"https://registry.npmjs.org/express-namespace/-/express-namespace-0.0.1.tgz","integrity":"sha512-dcXLKEXJxt+4avzKoIPPZMJLWyXr3TVpUU+jDcdvbJgw7UElyTd+VhY5H/zGHyNzpmOJNy8YnowzRzHzbytQSA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDnhhdXo5JhOXl7hccfaPYd3zoBGrO4xXiWXP+l5B+deAiEAz+2L5+0Z2ygPHg7JI2lGC1+H+p/1ULwSrBcwlUDPdtU="}]}},"0.0.2":{"name":"express-namespace","description":"Express namespaced routes extension","version":"0.0.2","author":{"name":"TJ Holowaychuk","email":"tj@vision-media.ca"},"keywords":["express"],"main":"index","engines":{"node":">= 0.2.0"},"_id":"express-namespace@0.0.2","_engineSupported":true,"_npmVersion":"0.3.13","_nodeVersion":"v0.4.2","directories":{},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"769d565c063b60c73fd5dabbd971f227a20efbd9","tarball":"https://registry.npmjs.org/express-namespace/-/express-namespace-0.0.2.tgz","integrity":"sha512-DV61OPe9dukPoWeX50TkdcTUyD1SrHa9SWyHocvCGN4++ufXHgjR047ENua+1Sd2Jd6y0AS5gUdTwEamCiGyfg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDMDDGRr/FSt/ugNXgnLZWChTHfk1o51OZtiawFkgC0CgIgVPHib68KJcWM+lYm2CV8stH6ah8bXFGm8Lt76vbCiDY="}]}},"0.0.3":{"name":"express-namespace","description":"Express namespaced routes extension","version":"0.0.3","author":{"name":"TJ Holowaychuk","email":"tj@vision-media.ca"},"keywords":["express"],"main":"index","engines":{"node":">= 0.2.0"},"_id":"express-namespace@0.0.3","_engineSupported":true,"_npmVersion":"0.3.15","_nodeVersion":"v0.4.2","directories":{},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"add095b1fbed0f074968ce1f79d9c59784bf368a","tarball":"https://registry.npmjs.org/express-namespace/-/express-namespace-0.0.3.tgz","integrity":"sha512-JJfxhB2LFXJME6G57XCoq5Ew59gv6r8WDNszR1HFK1IqwQAwptoogy9ztlybzkkpXo5tiH1X2K9OxVnmpdeNdA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCcanlXItCRNGuJxMdkx4O+F1fhtBR0O8MvAtIDVY1CjQIgNfX+pFlDd2iyFoZu7LaOfItVhUKynXZ2um3kTx5HcB0="}]}},"0.0.4":{"name":"express-namespace","description":"Express namespaced routes extension","version":"0.0.4","author":{"name":"TJ Holowaychuk","email":"tj@vision-media.ca"},"keywords":["express"],"main":"index","devDependencies":{"express":"0.2.x","ejs":">= 0.0.1","expresso":">= 0.0.1"},"engines":{"node":">= 0.2.0"},"_npmJsonOpts":{"file":"/Users/tj/.npm/express-namespace/0.0.4/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"express-namespace@0.0.4","dependencies":{},"_engineSupported":true,"_npmVersion":"1.0.24","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"5f7416c9efb38840f0aef0696a990eae9159f241","tarball":"https://registry.npmjs.org/express-namespace/-/express-namespace-0.0.4.tgz","integrity":"sha512-e8ctXCf7Xlg183TAb4bQmd16LYqfzee4oIeZ3Az2C7bf7LyoRPiZ/RYkQFlQMqxn1vO+cVXPMxQxzbCF2NTsTA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCBUi6bu88ITlGF+nKbspD0OPzaM3zHbJveeKMtfi4t5gIgBCgi19bZNvJ8K4+Xj5vYGY9wdqvTUfbrdSjD2432ibs="}]},"scripts":{},"maintainers":[{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"directories":{}},"0.1.0":{"name":"express-namespace","description":"Express namespaced routes extension","version":"0.1.0","author":{"name":"TJ Holowaychuk","email":"tj@vision-media.ca"},"keywords":["express"],"main":"index","devDependencies":{"express":"2.5.x","ejs":">= 0.0.1","expresso":">= 0.0.1"},"engines":{"node":">= 0.2.0"},"_npmUser":{"name":"tjholowaychuk","email":"tj@vision-media.ca"},"_id":"express-namespace@0.1.0","dependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.16","_nodeVersion":"v0.6.12","_defaultsLoaded":true,"dist":{"shasum":"446a53dbd013b6d3741a1681ce0accd4a53b19dc","tarball":"https://registry.npmjs.org/express-namespace/-/express-namespace-0.1.0.tgz","integrity":"sha512-qBEXCDU/5pjC/908j8W2FuhqPHSL0KmQeCzHZ69vzpoTCbir/UFkVmYMYJbct9b6G/Bgcp86FFhfwRfNxW5hbw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEdCYUcGAjyIbe/adcAm7CAULHUWeDyfvrRibGRzbYeNAiBsCkjSv0dC7bz0Mw/R+Z3ULmAGtX8A07jnIgUIEph4Qg=="}]},"readme":"\n# Express Contrib\n      \nThe _express-namespace_ module provides namespace capabilities to express.\n\n## Installation\n\nnpm:\n\n    $ npm install express-namespace\n\n## Usage\n\n The example below may respond to any of the following requests:\n\n    GET /forum/12\n    GET /forum/12/view\n    GET /forum/12/edit\n    GET /forum/12/thread/5\n    DELETE /forum/12\n\nTo utilize this module simply `require('express-namespace')` and `app.namespace()` will automatically be available to you.\n\nUsage is as follows, simply pass a callback function and route to the method, after each callback invocation is complete, the namespace is restored to it's previous state.\n\n    app.namespace('/forum/:id', function(){\n      app.get('/(view)?', function(req, res){\n        res.send('GET forum ' + req.params.id);\n      });\n      \n      app.get('/edit', function(req, res){\n        res.send('GET forum ' + req.params.id + ' edit page');\n      });\n\n      app.namespace('/thread', function(){\n        app.get('/:tid', function(req, res){\n          res.send('GET forum ' + req.params.id + ' thread ' + req.params.tid);\n        });\n      });\n\n      app.del('/', function(req, res){\n        res.send('DELETE forum ' + req.params.id);\n      });\n    });\n\nYou can also access the current namespace via `app.currentNamespace`;\n\n## Running Tests\n\nFirst make sure you have the submodules:\n\n    $ git submodule update --init\n\nThen run the tests:\n\n    $ make test\n\n## License \n\n(The MIT License)\n\nCopyright (c) 2010 TJ Holowaychuk &lt;tj@vision-media.ca&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","maintainers":[{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"directories":{}},"0.1.1":{"name":"express-namespace","description":"Express namespaced routes extension","version":"0.1.1","author":{"name":"TJ Holowaychuk","email":"tj@vision-media.ca"},"keywords":["express"],"main":"index","dependencies":{"methods":"0.0.1"},"devDependencies":{"express":"3.x","ejs":"*","mocha":"*","supertest":"*"},"_id":"express-namespace@0.1.1","dist":{"shasum":"c49850a74cea16ed94ba85637401d866c61b19f1","tarball":"https://registry.npmjs.org/express-namespace/-/express-namespace-0.1.1.tgz","integrity":"sha512-MwBwN4+iuy2jewQ5kvfMTYWIQD/k63gvwfmyI4I9wNyvQvF0V9naVkDEL8OOpB6LXVBXdSb67iKlNOV3LvA4bw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH4CEnmmNII4dVUhmb9W1e7mbg1Eg3Oej8x8yEjtTI1VAiAYHKYjml9+8YAwM1/xdokNUaosm6hfclhTeLs32T9Muw=="}]},"readme":"\n# Express Contrib\n      \nThe _express-namespace_ module provides namespace capabilities to express.\n\n## Installation\n\nnpm:\n\n    $ npm install express-namespace\n\n## Usage\n\n The example below may respond to any of the following requests:\n\n    GET /forum/12\n    GET /forum/12/view\n    GET /forum/12/edit\n    GET /forum/12/thread/5\n    DELETE /forum/12\n\nTo utilize this module simply `require('express-namespace')` and `app.namespace()` will automatically be available to you.\n\nUsage is as follows, simply pass a callback function and route to the method, after each callback invocation is complete, the namespace is restored to it's previous state.\n\n    app.namespace('/forum/:id', function(){\n      app.get('/(view)?', function(req, res){\n        res.send('GET forum ' + req.params.id);\n      });\n      \n      app.get('/edit', function(req, res){\n        res.send('GET forum ' + req.params.id + ' edit page');\n      });\n\n      app.namespace('/thread', function(){\n        app.get('/:tid', function(req, res){\n          res.send('GET forum ' + req.params.id + ' thread ' + req.params.tid);\n        });\n      });\n\n      app.del('/', function(req, res){\n        res.send('DELETE forum ' + req.params.id);\n      });\n    });\n\nYou can also access the current namespace via `app.currentNamespace`;\n\n## Running Tests\n\nFirst make sure you have the submodules:\n\n    $ git submodule update --init\n\nThen run the tests:\n\n    $ make test\n\n## License \n\n(The MIT License)\n\nCopyright (c) 2010 TJ Holowaychuk &lt;tj@vision-media.ca&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","maintainers":[{"name":"tjholowaychuk","email":"tj@vision-media.ca"}]}},"maintainers":[{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"time":{"modified":"2022-06-17T22:28:04.590Z","created":"2011-02-21T19:27:58.569Z","0.0.1":"2011-02-21T19:27:58.913Z","0.0.2":"2011-03-04T00:10:22.727Z","0.0.3":"2011-03-15T15:46:41.043Z","0.0.4":"2011-10-19T16:26:51.261Z","0.1.0":"2012-04-12T16:26:14.158Z","0.1.1":"2012-06-28T22:14:31.012Z"},"author":{"name":"TJ Holowaychuk","email":"tj@vision-media.ca"},"users":{"shieldax":true,"j3kz":true,"tophsic":true,"bluejeansandrain":true}}