{"_id":"servedir","_rev":"35-440073f5e75f82e991704ceb2b4782df","name":"servedir","description":"Creates a simple web server for a directory","dist-tags":{"latest":"1.0.1"},"versions":{"0.0.1":{"name":"servedir","homepage":"http://github.com/remy/servedir","author":{"name":"Remy Sharp","url":"http://github.com/remy"},"bin":{"servedir":"./servedir"},"repository":{"type":"git","url":"http://github.com/remy/servedir.git"},"description":"Creates a simple web server for a directory","keywords":["development","web","server","terminal"],"version":"0.0.1","main":"./servedir","_id":"servedir@0.0.1","engines":{"node":"*"},"_nodeSupported":true,"_npmVersion":"0.2.3-6","_nodeVersion":"v0.3.0-pre","dist":{"tarball":"https://registry.npmjs.org/servedir/-/servedir-0.0.1.tgz","shasum":"e1c2482b45ad62dead3fb339e69d95c7a78bef60","integrity":"sha512-52h0MKUWP7lnaeU1q+umBAvYTdZ32uecJNIIgvTr4FIGijaDhRwRWKzkyI8/r968DzLZDqo+7DmfdFnhxv6wOw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBi9kvIPR8VI7RHKwh3rLhIPoL2YLkkubhn9TwReNIbcAiEAhzF5W3sVzJ/pEfZOXoiBWRWFykfehi6XyC/i8GlByVs="}]},"directories":{}},"0.0.2":{"name":"servedir","homepage":"http://github.com/remy/servedir","author":{"name":"Remy Sharp","url":"http://github.com/remy"},"bin":{"servedir":"./servedir"},"repository":{"type":"git","url":"http://github.com/remy/servedir.git"},"description":"Creates a simple web server for a directory","keywords":["development","web","server","terminal"],"version":"0.0.2","main":"./servedir","_id":"servedir@0.0.2","engines":{"node":"*"},"_nodeSupported":true,"_npmVersion":"0.2.3-6","_nodeVersion":"v0.3.0-pre","dist":{"tarball":"https://registry.npmjs.org/servedir/-/servedir-0.0.2.tgz","shasum":"ae7752f113f9b7e6cffc1c0cbfbca0e69cb5a252","integrity":"sha512-/P93v91/e6gb7I8sCGYY+JX5mdOnCkB0Vzh88yI3yZl31hoQTRRX8utDq6bK1ne7LhzjIiRG4iSlOqQmSYSTug==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC4BlC6q0W4TaTytfZG1UfluCjFfC3Nd0nGSRT9tfIB/AiEA2Iaq0cdk+jueqCHGc8UncdS6sUisQHPKzjw6D/L0vuI="}]},"directories":{}},"0.1.2":{"name":"servedir","version":"0.1.2","description":"Creates a simple web server for a directory","homepage":"https://github.com/remy/servedir","main":"servedir","keywords":["development","web","server","terminal"],"author":{"name":"Remy Sharp","url":"https://github.com/remy"},"repository":{"type":"git","url":"https://github.com/remy/servedir.git"},"bin":{"servedir":"./servedir.js"},"_id":"servedir@0.1.2","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"0.2.17","_nodeVersion":"v0.3.8-pre","directories":{},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"d579129eae2961945d8e91f1aa4484413c08d8a0","tarball":"https://registry.npmjs.org/servedir/-/servedir-0.1.2.tgz","integrity":"sha512-JqU20e4zN/1r+oqKsUvAmunSUNkNz6aDu6tZW0ie/KkKZkVMI1koxHDf/RqrKzvAfFBDq6zgXU1pypdNoC0UUA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCy4KaS1v14qM9z/mlXXjGC2Mez6nC8jT7Xq4zC85AKiAIhALmHUN1abriL4ZuPEmDU+l78AcYQg+gj6lUjRCcuAogi"}]}},"0.1.3":{"name":"servedir","version":"0.1.3","description":"Creates a simple web server for a directory","homepage":"https://github.com/remy/servedir","main":"servedir","keywords":["development","web","server","terminal"],"author":{"name":"Remy Sharp","url":"https://github.com/remy"},"repository":{"type":"git","url":"https://github.com/remy/servedir.git"},"bin":{"servedir":"./servedir.js"},"_id":"servedir@0.1.3","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"0.2.17","_nodeVersion":"v0.3.8-pre","directories":{},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"c8c050bb85a0ab982768d6c84d90498c9c80c417","tarball":"https://registry.npmjs.org/servedir/-/servedir-0.1.3.tgz","integrity":"sha512-lwDKOYB3PZvlUiBF1ijzzvz6dodJgM5RmdvN/YypLiiZprTma+9s+ttJK4GvEcCbICrfbN6RI3Wg4fJDP620qw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDl7nXiP9EVXU07rTsvrQKae/NllsfV8hBm3CiUa+C4fwIgTnzlww5kDbLmVTS+tDr03yW8y7YmQOcWsF+3MumlZpo="}]}},"0.1.4":{"name":"servedir","version":"0.1.4","description":"Creates a simple web server for a directory","homepage":"https://github.com/remy/servedir","main":"servedir","keywords":["development","web","server","terminal"],"author":{"name":"Remy Sharp","url":"https://github.com/remy"},"repository":{"type":"git","url":"https://github.com/remy/servedir.git"},"bin":{"servedir":"./servedir.js"},"_id":"servedir@0.1.4","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"0.2.17","_nodeVersion":"v0.3.8-pre","directories":{},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"df8926f73dac2690e661b1ac9ed43926e368ead5","tarball":"https://registry.npmjs.org/servedir/-/servedir-0.1.4.tgz","integrity":"sha512-b8oonEdW/Xi3alMdERlKe/flKAdRqApc+DIS9AjvLy4pVb0dQcTw1IPCkpVyeUtgsd+8sgwSTavEZuMJKoQpKA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCk0AzXJiXoOq9UOfkpnTff/ISMVBaWtGromd+rRGAeawIgHGYVrRDLcTVbpgse58Ywh1aAsixBxTEkqlzQRGG9jQg="}]}},"0.1.5":{"name":"servedir","version":"0.1.5","description":"Creates a simple web server for a directory","homepage":"https://github.com/remy/servedir","main":"servedir","keywords":["development","web","server","terminal"],"author":{"name":"Remy Sharp","url":"https://github.com/remy"},"repository":{"type":"git","url":"https://github.com/remy/servedir.git"},"bin":{"servedir":"./servedir.js"},"_id":"servedir@0.1.5","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"0.2.17","_nodeVersion":"v0.3.8-pre","directories":{},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"d9a74b4b01ec0bddc50bbe8eea2c8d7646959f01","tarball":"https://registry.npmjs.org/servedir/-/servedir-0.1.5.tgz","integrity":"sha512-Mc+bUfnoPXDbwb5D8fO+RfhzGDEmnBUrc7kT1Ar/rCQGgHrZyOqSIaevnzJo0lca1o8ktpeSPafdB8cBhSJ5mw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDEBGVUTxVW+P0SSpvkiJsU6xQlCF4yI+4tswj560m6+QIgT3DF/SPuFpwj2jvnch4Ih75+7hm1jpr37zCFt9euy7M="}]}},"0.1.9":{"name":"servedir","version":"0.1.9","description":"Creates a simple web server for a directory","homepage":"http://github.com/remy/servedir","main":"./lib/servedir","keywords":["development","web","server","terminal"],"author":{"name":"Remy Sharp","url":"http://github.com/remy"},"repository":{"type":"git","url":"git://github.com/remy/servedir.git"},"bin":{"servedir":"./bin/servedir"},"_id":"servedir@0.1.9","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"0.3.7","_nodeVersion":"v0.4.1-pre","directories":{"lib":"./lib","bin":"./bin"},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"248a618e6dfc07d579c47e1f33e16f311c861ab7","tarball":"https://registry.npmjs.org/servedir/-/servedir-0.1.9.tgz","integrity":"sha512-cHyPvu6xSFoEUeedU02cp0DGcs5NTzhrWgoSCaKSbIAE1sN9GTH0sxIvyBCCqmnctQoZqYVnk3xZPcjv7z8hPw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDzXKXJzlcMnvq9Q6NQqzGN2Uq3lwnSeEPpnb9EdUpFKAiAK5QZSCF2/SPO1S5IobBqPAsZwEVFSdSnl8uTDMCpuMw=="}]}},"0.1.10":{"name":"servedir","version":"0.1.10","description":"Creates a simple web server for a directory","homepage":"http://github.com/remy/servedir","main":"./lib/servedir","keywords":["development","web","server","terminal"],"author":{"name":"Remy Sharp","url":"http://github.com/remy"},"repository":{"type":"git","url":"git://github.com/remy/servedir.git"},"bin":{"servedir":"./bin/servedir"},"dependencies":{},"devDependencies":{},"_id":"servedir@0.1.10","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.3","_nodeVersion":"v0.4.7","_defaultsLoaded":true,"dist":{"shasum":"edd2fbd40654ead50c52227e6fa648a820b7d521","tarball":"https://registry.npmjs.org/servedir/-/servedir-0.1.10.tgz","integrity":"sha512-F/IepmFPejLXwIrLZfOHU34abw3LI6qQayLW9fPVMRFCRVyownSG+VOIIheVTkF/UQX26lNZi0Vmf825JAbesw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG5LOhOr7ggZDvQn6f9yCW/JYCxXYUNgi4x965u1YSKSAiEA7KzUTPgoW73dsiUIdubaQLW1JFxQSE9zSJwi4zQJ36U="}]},"scripts":{},"directories":{}},"0.2.0":{"name":"servedir","version":"0.2.0","description":"Creates a simple web server for a directory","homepage":"http://github.com/remy/servedir","main":"./lib/servedir","keywords":["development","web","server","terminal"],"author":{"name":"Remy Sharp","url":"http://github.com/remy"},"repository":{"type":"git","url":"git://github.com/remy/servedir.git"},"bin":{"servedir":"./bin/servedir"},"_id":"servedir@0.2.0","dist":{"shasum":"ad48f1a966c3934e1133fc88a4366637dfba3c35","tarball":"https://registry.npmjs.org/servedir/-/servedir-0.2.0.tgz","integrity":"sha512-GMID5i7NuwTUFZnXQEjlP+YVtlTTv19s27XfukkQy0DByJm93GKr0hgfW4u+krEQsTK/XP96IdI4DXa8upht3A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEdpZF4zSflTYMTpKXY9nYCTHL4vo8bQHoZwT5TTZBzeAiEA3AQvK7epSTly8wG9lXMvupnZzl1xxGe8t/UeazSUS0w="}]},"_npmVersion":"1.1.61","_npmUser":{"name":"remy","email":"remy@remysharp.com"},"maintainers":[{"name":"remy","email":"remy@remysharp.com"},{"name":"kitgoncharov","email":"ksgoncharov@gmail.com"}],"directories":{}},"0.2.1":{"name":"servedir","version":"0.2.1","description":"Creates a simple web server for a directory","homepage":"http://github.com/remy/servedir","main":"./lib/servedir","keywords":["development","web","server","terminal"],"author":{"name":"Remy Sharp","url":"http://github.com/remy"},"repository":{"type":"git","url":"git://github.com/remy/servedir.git"},"bin":{"servedir":"./bin/servedir"},"_id":"servedir@0.2.1","dist":{"shasum":"108065d62ed23a67ef507622db81d8e989eeddbc","tarball":"https://registry.npmjs.org/servedir/-/servedir-0.2.1.tgz","integrity":"sha512-g0Nvaf4UVcCWigwXIHV1HMyuQDaS9tCF8wJmyhHItWmcHwmJZ+xn6Jr65VvW4vXcjWbIY8thepdfwPMxD2VeMg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCZSOX0pgzf8Qvo9msuZTU+/rOQVh1r4WuZQ/pLLTAixAIhAJCngHGK0GR5i6APSelgcCaXvZYTWy7imQRMBlBn1OHR"}]},"_npmVersion":"1.1.61","_npmUser":{"name":"remy","email":"remy@remysharp.com"},"maintainers":[{"name":"remy","email":"remy@remysharp.com"},{"name":"kitgoncharov","email":"ksgoncharov@gmail.com"}],"directories":{}},"0.2.2":{"name":"servedir","version":"0.2.2","description":"Creates a simple web server for a directory","homepage":"http://github.com/remy/servedir","main":"./lib/servedir","keywords":["development","web","server","terminal"],"author":{"name":"Remy Sharp","url":"http://github.com/remy"},"repository":{"type":"git","url":"git://github.com/remy/servedir.git"},"bin":{"servedir":"./bin/servedir"},"_id":"servedir@0.2.2","dist":{"shasum":"16526f635fc4d921b4f8f3beb40629be2f9f6600","tarball":"https://registry.npmjs.org/servedir/-/servedir-0.2.2.tgz","integrity":"sha512-5xqH+MRwz7uteQI0rmJDJwfMs7mwx8Yh4LNNBFALCbWBZVQuv7XxLmj/mgJhAivOS95vfVNKoW9xI8Pj6Pm7nw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDXTzl+Y1s1PlgS/uA85qSM2TxoA6CxwphKBzDMIhM0JQIhAMe75UMqd8QQmyaRX+FLZT0iAEN0E0OONeJL0mBokjUf"}]},"_npmVersion":"1.1.61","_npmUser":{"name":"kitcambridge","email":"kit.cambridge@voxer.com"},"maintainers":[{"name":"remy","email":"remy@remysharp.com"},{"name":"kitgoncharov","email":"ksgoncharov@gmail.com"},{"name":"kitcambridge","email":"kit.cambridge@voxer.com"}],"directories":{}},"1.0.0":{"name":"servedir","version":"1.0.0","description":"Creates a simple web server for a directory","homepage":"http://github.com/remy/servedir","main":"./lib/servedir","keywords":["development","web","server","terminal"],"author":{"name":"Remy Sharp","url":"http://github.com/remy"},"repository":{"type":"git","url":"git://github.com/remy/servedir.git"},"bin":{"servedir":"./bin/servedir","serve":"./bin/servedir"},"dependencies":{"router-stupid":"^0.7.0"},"gitHead":"6aed2e7d3b75fa9f1afb065bc1d85dd5d2c0a67e","bugs":{"url":"https://github.com/remy/servedir/issues"},"_id":"servedir@1.0.0","scripts":{},"_shasum":"2e63288ff71b40378d9803f287c94479dcd64306","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"remy","email":"remy@remysharp.com"},"maintainers":[{"name":"remy","email":"remy@remysharp.com"},{"name":"kitcambridge","email":"kit.cambridge@voxer.com"}],"dist":{"shasum":"2e63288ff71b40378d9803f287c94479dcd64306","tarball":"https://registry.npmjs.org/servedir/-/servedir-1.0.0.tgz","integrity":"sha512-jHi0AHwEiTNd00/BtybnRm3PdtdKpOaYmwyw1/jqjOV+keZxJMYoEdqHf/zisQE3dJoq2MFHgdLizE97t5lBIA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFmoJEcs3Lgb6aMjzfP/jfvOK0U7UKzOTPqm2FBiiogQAiEAzXZELyBj87zpCAtY2+oNKqJjS2blB0nVgd6u764jG9M="}]},"directories":{},"deprecated":"Directory Traversal vuln fixed in 1.0.1 - details https://snyk.io/vuln/npm:servedir:20180226"},"1.0.1":{"name":"servedir","version":"1.0.1","description":"Creates a simple web server for a directory","homepage":"http://github.com/remy/servedir","main":"./lib/servedir","keywords":["development","web","server","terminal"],"author":{"name":"Remy Sharp","url":"http://github.com/remy"},"repository":{"type":"git","url":"git://github.com/remy/servedir.git"},"bin":{"servedir":"./bin/servedir","serve":"./bin/servedir"},"dependencies":{"router-stupid":"^0.7.0"},"gitHead":"6fffea7be9660b6449fcc498ab9a45c25f0a3077","bugs":{"url":"https://github.com/remy/servedir/issues"},"_id":"servedir@1.0.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"remy","email":"remy@leftlogic.com"},"dist":{"integrity":"sha512-Ls3x9D0/eebmC9/JYG8BipRac7+e8hBt6TzUw70c/UsY0u2zjxizh+sSJSQDtNa0OxLNbZ9ZudzbwLIOeWQmEw==","shasum":"67a67b192897403ebef0a4888f5bc6ee756b511b","tarball":"https://registry.npmjs.org/servedir/-/servedir-1.0.1.tgz","fileCount":7,"unpackedSize":54200,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCF8iPHq2yzweW4yPxqb7v16+f4QsV6YeF2vNctinI2TgIhAJxge0gjez/fbyTmGX8j5xc3YBOH33LbMFeyDeSRRhbH"}]},"maintainers":[{"name":"kitcambridge","email":"github@kitcambridge.be"},{"name":"remy","email":"remy@leftlogic.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/servedir_1.0.1_1519737678437_0.790483280439479"},"_hasShrinkwrap":false}},"maintainers":[{"name":"kitcambridge","email":"github@kitcambridge.be"},{"name":"remy","email":"remy@leftlogic.com"}],"time":{"modified":"2022-06-26T17:59:38.078Z","created":"2011-01-05T15:04:10.399Z","0.0.1":"2011-01-05T15:04:10.791Z","0.0.2":"2011-01-05T15:33:44.005Z","0.1.2":"2011-02-03T16:23:20.079Z","0.1.3":"2011-02-03T17:09:14.140Z","0.1.4":"2011-02-04T15:19:55.981Z","0.1.5":"2011-02-05T14:38:00.824Z","0.1.9":"2011-02-23T22:29:07.648Z","0.1.10":"2011-06-02T15:50:41.297Z","0.2.0":"2012-10-08T20:21:34.228Z","0.2.1":"2012-10-10T14:30:30.179Z","0.2.2":"2012-10-12T22:58:25.575Z","1.0.0":"2014-12-12T12:51:02.569Z","1.0.1":"2018-02-27T13:21:18.563Z"},"author":{"name":"Remy Sharp","url":"http://github.com/remy"},"repository":{"type":"git","url":"git://github.com/remy/servedir.git"},"readme":"# servedir\n\n`servedir` is a simple [Node](http://nodejs.org) web server for offline development and testing: running `servedir` from a directory will create a quick local web server. `servedir` is useful for developing scripts that require a standard web environment and can't use the `file://` protocol.\n\nThe annotated source code is included in the `docs/` folder.\n\n## Installation\n\nCheck out a working copy of the source code with [Git](http://git-scm.com), or install `servedir` via [npm](http://npmjs.org). The latter will also install `servedir` into the system's `bin` path.\n\n    $ git clone git://github.com/remy/servedir.git\n    $ npm install servedir -g\n\n## Usage\n\n`servedir [path] [port]`\n\n* `path` - The location to serve files and directories from. Defaults to the current working directory.\n* `port` - The port number. Default to 8000.\n\nIf no port is given, it'll try to find the next free port from 8000 upwards.\n\n## Mocked router\n\nTo create a mock router, create a `routes.json` file in the current working directory, and `servedir` will respond with your data.\n\nFor example:\n\n```json\n{\n  \"GET /foo/:id\": {\n    \"id\": \"{{id}}\",\n    \"title\": \"Awesome stuff\"\n  },\n  \"POST /ok\": {\n    \"success\": true\n  },\n  \"POST /fail\": {\n    \"success\": true\n  }\n}\n```\n\nNow requests to those URLs will respond with JSON for the mocked endpoints.\n\n## Example\n\n    $ servedir\n    $ servedir 8001\n    $ servedir ~/Documents/example\n    $ servedir ~/Documents/example 8001\n\n## Contributors\n\n* [Remy Sharp](http://remysharp.com/) (author)\n* [Graham Ballantyne](http://grahamballantyne.com/)\n* [Kit Cambridge](http://kitcambridge.github.com/)\n* [Mathias Bynens](http://mathiasbynens.be/)","homepage":"http://github.com/remy/servedir","keywords":["development","web","server","terminal"],"bugs":{"url":"https://github.com/remy/servedir/issues"},"readmeFilename":"README.md"}