{"_id":"test-server","_rev":"1740207","name":"test-server","description":"Easy testing of a HTTP server","dist-tags":{"latest":"0.2.1"},"maintainers":[{"name":"raynos","email":"raynos2@gmail.com"}],"time":{"modified":"2026-11-17T15:24:31.000Z","created":"2012-07-15T08:37:52.446Z","0.2.1":"2013-11-25T21:15:05.167Z","0.1.3":"2013-04-24T20:39:11.912Z","0.1.2":"2013-04-24T20:38:26.851Z","0.1.1":"2013-04-04T01:06:47.696Z","0.1.0":"2012-11-29T00:23:20.519Z","0.0.1":"2012-07-15T08:37:52.446Z"},"users":{},"author":{"name":"Raynos","email":"raynos2@gmail.com"},"repository":{"type":"git","url":"git://github.com/Raynos/test-server.git"},"versions":{"0.2.1":{"name":"test-server","version":"0.2.1","description":"Easy testing of a HTTP server","keywords":[],"author":{"name":"Raynos","email":"raynos2@gmail.com"},"repository":{"type":"git","url":"git://github.com/Raynos/test-server.git"},"main":"index","homepage":"https://github.com/Raynos/test-server","contributors":[{"name":"Jake Verbaten"}],"bugs":{"url":"https://github.com/Raynos/test-server/issues","email":"raynos2@gmail.com"},"dependencies":{"request":"~2.27.0","xtend":"~1.0.3","ap":"~0.1.0"},"devDependencies":{"testling":"git://github.com/Raynos/testling#master","testem":"git://github.com/Raynos/testem#master","sinon":"git://github.com/Raynos/Sinon.JS.git","tap":"0.2.5"},"licenses":[{"type":"MIT","url":"http://github.com/Raynos/test-server/raw/master/LICENSE"}],"scripts":{"test":"make node-test"},"readmeFilename":"README.md","_id":"test-server@0.2.1","dist":{"shasum":"8201a38e51246d5cf4dbb867b4e2d9770074911b","tarball":"http://registry-npm.ywwl.com/test-server/download/test-server-0.2.1.tgz","integrity":"sha512-YlCrjbKJXC4qfVUdSBXlVPAA7TqQ17DwuY5RivQzboOwCz/yhkJXJTEu0thnksOKXFaiIfQGMXzPAA1fjt/PsQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDDDZTuh15Hqb3y8JnYbm0/E5fsxigxE4m6HbPbHL2SQAiEArGxcAgmc/2NgEHtXOj/sZd1lCVNxfbuh/WTDdeTJWQY="}],"size":2941,"noattachment":false,"key":"/test-server/-/test-server-0.2.1.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"raynos","email":"raynos2@gmail.com"},"maintainers":[{"name":"raynos","email":"raynos2@gmail.com"}],"publish_time":1385414105167,"_cnpm_publish_time":1385414105167},"0.1.3":{"name":"test-server","version":"0.1.3","description":"Easy testing of a HTTP server","keywords":[],"author":{"name":"Raynos","email":"raynos2@gmail.com"},"repository":{"type":"git","url":"git://github.com/Raynos/test-server.git"},"main":"index","homepage":"https://github.com/Raynos/test-server","contributors":[{"name":"Jake Verbaten"}],"bugs":{"url":"https://github.com/Raynos/test-server/issues","email":"raynos2@gmail.com"},"dependencies":{"request":"~2.9.203","xtend":"~1.0.3","ap":"~0.1.0"},"devDependencies":{"testling":"git://github.com/Raynos/testling#master","testem":"git://github.com/Raynos/testem#master","sinon":"git://github.com/Raynos/Sinon.JS.git","tap":"0.2.5"},"licenses":[{"type":"MIT","url":"http://github.com/Raynos/test-server/raw/master/LICENSE"}],"scripts":{"test":"make node-test"},"readmeFilename":"README.md","_id":"test-server@0.1.3","dist":{"shasum":"0252c6f86a625d7bcfb300b74bbe20cc7500d034","tarball":"http://registry-npm.ywwl.com/test-server/download/test-server-0.1.3.tgz","integrity":"sha512-9LBLvn33cVp1cNd5y8XS1MtzgXvdu62SBkKpws/ydRs8o1Cx+0eGbgDW6riHpyRZLCwV1uz+LWGPtv8BMoFX3Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBV5rQGA+T3ZaelQFpogjFxV4dHevAJPD+pID732fDz3AiEAvhw9IWJJTtex2ossY/GNy82aaYxy0SlN9LwO6fUQbjk="}],"size":2978,"noattachment":false,"key":"/test-server/-/test-server-0.1.3.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"raynos","email":"raynos2@gmail.com"},"maintainers":[{"name":"raynos","email":"raynos2@gmail.com"}],"publish_time":1366835951912,"_cnpm_publish_time":1366835951912},"0.1.2":{"name":"test-server","version":"0.1.2","description":"Easy testing of a HTTP server","keywords":[],"author":{"name":"Raynos","email":"raynos2@gmail.com"},"repository":{"type":"git","url":"git://github.com/Raynos/test-server.git"},"main":"index","homepage":"https://github.com/Raynos/test-server","contributors":[{"name":"Jake Verbaten"}],"bugs":{"url":"https://github.com/Raynos/test-server/issues","email":"raynos2@gmail.com"},"dependencies":{"request":"~2.9.203","xtend":"~1.0.3","ap":"~0.1.0"},"devDependencies":{"testling":"git://github.com/Raynos/testling#master","testem":"git://github.com/Raynos/testem#master","sinon":"git://github.com/Raynos/Sinon.JS.git","tap":"0.2.5"},"licenses":[{"type":"MIT","url":"http://github.com/Raynos/test-server/raw/master/LICENSE"}],"scripts":{"test":"make node-test"},"readmeFilename":"README.md","_id":"test-server@0.1.2","dist":{"shasum":"9b6f5a9d26cd3ad7c1abbfdd93cae81bf63344e1","tarball":"http://registry-npm.ywwl.com/test-server/download/test-server-0.1.2.tgz","integrity":"sha512-PEpe5hfKGGT8Co7KS6Cd337AdLQUR4IZeb3MGw078X82G/wLS9/wiM6ZAkjg8Pp9Sxiu50cUdh0TVeyJd43GSw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCG0g6MkQv5rLNvRTL8KBlPY9H52hGDY/lYSS2GHqvdcwIgDjXEO43zmpB8jWODZnnFR0Ul1WorCtJNhJrDg4efJt0="}],"size":2976,"noattachment":false,"key":"/test-server/-/test-server-0.1.2.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"raynos","email":"raynos2@gmail.com"},"maintainers":[{"name":"raynos","email":"raynos2@gmail.com"}],"publish_time":1366835906851,"_cnpm_publish_time":1366835906851},"0.1.1":{"name":"test-server","version":"0.1.1","description":"Easy testing of a HTTP server","keywords":[],"author":{"name":"Raynos","email":"raynos2@gmail.com"},"repository":{"type":"git","url":"git://github.com/Raynos/test-server.git"},"main":"index","homepage":"https://github.com/Raynos/test-server","contributors":[{"name":"Jake Verbaten"}],"bugs":{"url":"https://github.com/Raynos/test-server/issues","email":"raynos2@gmail.com"},"dependencies":{"request":"~2.9.203","xtend":"~1.0.3","ap":"~0.1.0"},"devDependencies":{"testling":"git://github.com/Raynos/testling#master","testem":"git://github.com/Raynos/testem#master","sinon":"git://github.com/Raynos/Sinon.JS.git","tap":"0.2.5"},"licenses":[{"type":"MIT","url":"http://github.com/Raynos/test-server/raw/master/LICENSE"}],"scripts":{"test":"make node-test"},"readmeFilename":"README.md","_id":"test-server@0.1.1","dist":{"shasum":"d67915557b253a2a5ca2e92caa8c61d2d1061c3a","tarball":"http://registry-npm.ywwl.com/test-server/download/test-server-0.1.1.tgz","integrity":"sha512-wIqrVa9ODTF9NFxJroQR88EEdJfHpcmg7mhBIC5AM6JledLL4kuDEQXV02ytCvaQ7BcdOEydhqqHJPZLx0t7ng==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHk6gIT+9t0jD7FJ9MDNvlVzvmHEsyIv5ls61U1Y1pHZAiEA7+AUjm/flBWLcmpUx4PmVPHANqkBTCXYn4Oew0WfE58="}],"size":2856,"noattachment":false,"key":"/test-server/-/test-server-0.1.1.tgz"},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"raynos","email":"raynos2@gmail.com"},"maintainers":[{"name":"raynos","email":"raynos2@gmail.com"}],"publish_time":1365037607696,"_cnpm_publish_time":1365037607696},"0.1.0":{"name":"test-server","version":"0.1.0","description":"Easy testing of a HTTP server","keywords":[],"author":{"name":"Raynos","email":"raynos2@gmail.com"},"repository":{"type":"git","url":"git://github.com/Raynos/test-server.git"},"main":"index","homepage":"https://github.com/Raynos/test-server","contributors":[{"name":"Jake Verbaten"}],"bugs":{"url":"https://github.com/Raynos/test-server/issues","email":"raynos2@gmail.com"},"dependencies":{"request":"~2.9.203","xtend":"~1.0.3","ap":"~0.1.0"},"devDependencies":{"testling":"git://github.com/Raynos/testling#master","testem":"git://github.com/Raynos/testem#master","sinon":"git://github.com/Raynos/Sinon.JS.git","tap":"0.2.5"},"licenses":[{"type":"MIT","url":"http://github.com/Raynos/test-server/raw/master/LICENSE"}],"scripts":{"test":"make node-test"},"readmeFilename":"README.md","_id":"test-server@0.1.0","dist":{"shasum":"9a9755f5a0754ff474042cf7a2cc8ea23f27403e","tarball":"http://registry-npm.ywwl.com/test-server/download/test-server-0.1.0.tgz","integrity":"sha512-KZblumNj1ByeeqS3nfbx2IUTbgEQZ8cVR0gBTFs3XDYhVPrroeCEkPYzJnBONHTW7aDnSPuD4Yv88n7JJTxumw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDpXk/ClF94W4GtorIsgwwqncy6/CWwEv0J6bp4cJ0hVwIhAIV85qDgSr8lrGV+qO9Qiqt7Yzeuj8OwuGr9CcsaEeVu"}],"size":2820,"noattachment":false,"key":"/test-server/-/test-server-0.1.0.tgz"},"_npmVersion":"1.1.65","_npmUser":{"name":"raynos","email":"raynos2@gmail.com"},"maintainers":[{"name":"raynos","email":"raynos2@gmail.com"}],"publish_time":1354148600519,"_cnpm_publish_time":1354148600519},"0.0.1":{"name":"test-server","version":"0.0.1","description":"Easy testing of a HTTP server","keywords":[],"author":{"name":"Raynos","email":"raynos2@gmail.com"},"repository":{"type":"git","url":"git://github.com/Raynos/test-server.git"},"main":"index","homepage":"https://github.com/Raynos/test-server","contributors":[{"name":"Jake Verbaten"}],"bugs":{"url":"https://github.com/Raynos/test-server/issues","email":"raynos2@gmail.com"},"dependencies":{"request":"~2.9.203","xtend":"~1.0.3","ap":"~0.1.0"},"devDependencies":{"testling":"git://github.com/Raynos/testling#master","testem":"git://github.com/Raynos/testem#master","sinon":"git://github.com/Raynos/Sinon.JS.git","tap":"0.2.5"},"licenses":[{"type":"MIT","url":"http://github.com/Raynos/test-server/raw/master/LICENSE"}],"scripts":{"test":"make node-test"},"_id":"test-server@0.0.1","dist":{"shasum":"25c18faeb1036169b9c48a17c82aa90a5a0a57b5","tarball":"http://registry-npm.ywwl.com/test-server/download/test-server-0.0.1.tgz","integrity":"sha512-iDybxfr/JPCT/S1gFIoTxMWByx5ZfLoac98WEOUkwO5XfE5SddaNH2ARZaZlnqLeBrKN9J1K5GFDS4HdkqOIEA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDwC5z9zWLYGranFBEKpWCosNG/LZyAM3IwMARm9SEJ8QIgPjtRe8Rqh6STWiz3uWKSQodKQv3AM+zymqxg0fDCWvQ="}],"size":2481,"noattachment":false,"key":"/test-server/-/test-server-0.0.1.tgz"},"maintainers":[{"name":"raynos","email":"raynos2@gmail.com"}],"publish_time":1342341472446,"_cnpm_publish_time":1342341472446}},"readme":"# test-server [![build status][1]][2]\n\nEasy testing of a HTTP server\n\n## Example\n\ntestServer will create a HTTP server for you on a port. It will use the first function you pass as the request handler and fire the second function when the server is done listening.\n\nThe second version is passed a version of mikeal's request that turns \"/foo\" into \"http://localhost:PORT/foo\". It's also passed a done function to call when you are done testing and want to kill the HTTP server\n\n    var testServer = require(\"test-server\")\n        , assert = require(\"assert\")\n\n    testServer(function (req, res) {\n        res.end(\"beep\")\n    }, function (request, done) {\n        request(\"/\", function (err, res, body) {\n            assert.equal(body, \"beep\")\n            done()\n        })\n    })\n\n### testServer(requestHandler[, options], callback)\n\nThe options are \n\n    {\n        port: Number\n        , timeout: Number\n        , protocol: \"http\" || \"https\"\n        , host: someString\n    }\n\n - port is the port the server will listen on and defaults to 3002\n - timeout is the number of milliseconds before the server auto-shutsdown. This defaults to 5000 and is useful to timeout your tests\n - protocol is the protocol for calls, the default is http\n - host is the domain host to call. It defaults to localhost\n\n## Installation\n\n`npm install test-server`\n\n## Tests\n\n`make test`\n\n## Contributors\n\n - Raynos\n\n## MIT Licenced\n\n  [1]: https://secure.travis-ci.org/Raynos/test-server.png\n  [2]: http://travis-ci.org/Raynos/test-server","_attachments":{},"readmeFilename":"README.md","homepage":"https://github.com/Raynos/test-server","bugs":{"url":"https://github.com/Raynos/test-server/issues","email":"raynos2@gmail.com"}}