{"_id":"http-serve","_rev":"7-bd20b7fd39b3a8b108acfe55037f3229","name":"http-serve","description":"Command-line http server with gzipping and fallback support","dist-tags":{"latest":"1.0.1"},"versions":{"0.9.0":{"name":"http-serve","version":"0.9.0","description":"Command-line http server with gzipping and fallback support","main":"./lib/http-serve","repository":{"type":"git","url":"git://github.com/dkarmalita/http-serve.git"},"keywords":["cli","command","http","https","gzip","gz","fallback"],"scripts":{"start":"node ./bin/http-serve","pretest":"common bin/http-server lib/ test","test":"vows --spec --isolate"},"contributors":[{"name":"Charlie Robbins","email":"charlie.robbins@gmail.com"},{"name":"Marak Squires","email":"marak.squires@gmail.com"},{"name":"Charlie McConnell","email":"charlie@charlieistheman.com"},{"name":"Joshua Holbrook","email":"josh.holbrook@gmail.com"},{"name":"Maciej Małecki","email":"maciej.malecki@notimplemented.org"},{"name":"Matthew Bergman","email":"mzbphoto@gmail.com"},{"name":"brad dunbar","email":"dunbarb2@gmail.com"},{"name":"Dominic Tarr"},{"name":"Travis Person","email":"travis.person@gmail.com"},{"name":"Jinkwon Lee","email":"master@bdyne.net"},{"name":"Karmalita Dmytro","email":"dmitriy.karmalita@gmail.com"}],"dependencies":{"colors":"1.0.3","corser":"~2.0.0","ecstatic":"^2.0.0","http-proxy":"^1.8.1","opener":"~1.4.0","optimist":"0.6.x","portfinder":"0.4.x","union":"~0.4.3"},"devDependencies":{"common-style":"^3.0.0","request":"2.49.x","vows":"0.7.x"},"license":"MIT","preferGlobal":"true","bin":{"http-server":"./bin/http-serve","hs":"./bin/http-serve"},"gitHead":"f860333e53e8a158f4fd7b1bd5eb12c3fa1d8838","bugs":{"url":"https://github.com/dkarmalita/http-serve/issues"},"homepage":"https://github.com/dkarmalita/http-serve#readme","_id":"http-serve@0.9.0","_shasum":"13f3bea353f56beb2781dc538d6436160c5ce9a2","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"hojyman","email":"altmine@gmail.com"},"dist":{"shasum":"13f3bea353f56beb2781dc538d6436160c5ce9a2","tarball":"https://registry.npmjs.org/http-serve/-/http-serve-0.9.0.tgz","integrity":"sha512-0gDUGmtz9rcwXu92qeb3tvDLdpdh+STec+pVldFR/DtyZLSCiKeJHr7gArgdBAuU+HIDMknf4B+Ad2rTA7UEpQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC+BUeDmCxf6UobHwYh06Xny/W5kZcn4uNuTIz2vfz/QQIhAKxfYJvkwynQc5z9vD8w8Z7fj/S9pP6zYqIKs0eaM5CD"}]},"maintainers":[{"name":"hojyman","email":"altmine@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/http-serve-0.9.0.tgz_1486478214086_0.1529087710659951"}},"0.9.1":{"name":"http-serve","version":"0.9.1","description":"Command-line http server with gzipping and fallback support","main":"./lib/http-serve","repository":{"type":"git","url":"git://github.com/dkarmalita/http-serve.git"},"keywords":["cli","command","http","https","gzip","gz","fallback"],"scripts":{"start":"node ./bin/http-serve","pretest":"common bin/http-server lib/ test","test":"vows --spec --isolate"},"contributors":[{"name":"Charlie Robbins","email":"charlie.robbins@gmail.com"},{"name":"Marak Squires","email":"marak.squires@gmail.com"},{"name":"Charlie McConnell","email":"charlie@charlieistheman.com"},{"name":"Joshua Holbrook","email":"josh.holbrook@gmail.com"},{"name":"Maciej Małecki","email":"maciej.malecki@notimplemented.org"},{"name":"Matthew Bergman","email":"mzbphoto@gmail.com"},{"name":"brad dunbar","email":"dunbarb2@gmail.com"},{"name":"Dominic Tarr"},{"name":"Travis Person","email":"travis.person@gmail.com"},{"name":"Jinkwon Lee","email":"master@bdyne.net"},{"name":"Karmalita Dmytro","email":"dmitriy.karmalita@gmail.com"}],"dependencies":{"colors":"1.0.3","corser":"~2.0.0","ecstatic":"^2.0.0","http-proxy":"^1.8.1","opener":"~1.4.0","optimist":"0.6.x","portfinder":"0.4.x","union":"~0.4.3"},"devDependencies":{"common-style":"^3.0.0","request":"2.49.x","vows":"0.7.x"},"license":"MIT","preferGlobal":"true","bin":{"http-server":"./bin/http-serve","hs":"./bin/http-serve"},"gitHead":"5bfb797f1baab93b2aa136e57644a33d4ebafc5e","bugs":{"url":"https://github.com/dkarmalita/http-serve/issues"},"homepage":"https://github.com/dkarmalita/http-serve#readme","_id":"http-serve@0.9.1","_shasum":"81961344e4a57701fef1682aee582b4c20767165","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"hojyman","email":"altmine@gmail.com"},"dist":{"shasum":"81961344e4a57701fef1682aee582b4c20767165","tarball":"https://registry.npmjs.org/http-serve/-/http-serve-0.9.1.tgz","integrity":"sha512-7TiL+CN1BomMGTViApwJom738ycjTcJCbqBEWKK4RoD+7sHcVvK674gIcQW+pSkrmxarbeR/q/XOdTpfoH4C8g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCt+FC0fJP4n044oMLM42nwSOJNB1zmqhatfcYuc5J0FAIhAMMKNLBCwM2zyjWm5hTFDlBLKEhn+yhX11lqk17i1iHm"}]},"maintainers":[{"name":"hojyman","email":"altmine@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/http-serve-0.9.1.tgz_1486478396443_0.5483752486761659"}},"1.0.0":{"name":"http-serve","version":"1.0.0","description":"Command-line http server with gzipping and fallback support","main":"./lib/http-serve","repository":{"type":"git","url":"git://github.com/dkarmalita/http-serve.git"},"keywords":["cli","command","http","https","gzip","gz","fallback"],"scripts":{"start":"node ./bin/http-serve","pretest":"common bin/http-server lib/ test","test":"vows --spec --isolate"},"contributors":[{"name":"Charlie Robbins","email":"charlie.robbins@gmail.com"},{"name":"Marak Squires","email":"marak.squires@gmail.com"},{"name":"Charlie McConnell","email":"charlie@charlieistheman.com"},{"name":"Joshua Holbrook","email":"josh.holbrook@gmail.com"},{"name":"Maciej Małecki","email":"maciej.malecki@notimplemented.org"},{"name":"Matthew Bergman","email":"mzbphoto@gmail.com"},{"name":"brad dunbar","email":"dunbarb2@gmail.com"},{"name":"Dominic Tarr"},{"name":"Travis Person","email":"travis.person@gmail.com"},{"name":"Jinkwon Lee","email":"master@bdyne.net"},{"name":"Karmalita Dmytro","email":"dmitriy.karmalita@gmail.com"}],"dependencies":{"colors":"1.0.3","corser":"~2.0.0","ecstatic":"^2.0.0","http-proxy":"^1.8.1","opener":"~1.4.0","optimist":"0.6.x","portfinder":"0.4.x","union":"~0.4.3"},"devDependencies":{"common-style":"^3.0.0","request":"2.49.x","vows":"0.7.x"},"license":"MIT","preferGlobal":"true","bin":{"http-server":"./bin/http-serve","hs":"./bin/http-serve"},"gitHead":"3b7a53644b1317fbffe91e16a83c4eb5f0b635a1","bugs":{"url":"https://github.com/dkarmalita/http-serve/issues"},"homepage":"https://github.com/dkarmalita/http-serve#readme","_id":"http-serve@1.0.0","_shasum":"d4fa0f7604b88b46d997edec10559651ed8968c0","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"hojyman","email":"altmine@gmail.com"},"dist":{"shasum":"d4fa0f7604b88b46d997edec10559651ed8968c0","tarball":"https://registry.npmjs.org/http-serve/-/http-serve-1.0.0.tgz","integrity":"sha512-a/3hS3rjNRf8EbV+MlZ31IT7zUSk4gOTL1XCI45zycCqYGCO5q98l8s5n+WEsHoXVp+ecRxbGgwfK9DNv9lEsA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICRUDVtY1fvw+6yMxa+iUiJHqYGHvpWG5kLD0rlVwzDTAiEA8nkP5wvKQ/4pTpPvIbgC5nWA5Qs7ZAc1yYr59H42Vg4="}]},"maintainers":[{"name":"hojyman","email":"altmine@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/http-serve-1.0.0.tgz_1486478580029_0.7311671224888414"}},"1.0.1":{"name":"http-serve","version":"1.0.1","description":"Command-line http server with gzipping and fallback support","main":"./lib/http-serve","repository":{"type":"git","url":"git://github.com/dkarmalita/http-serve.git"},"keywords":["cli","command","http","https","gzip","gz","fallback"],"scripts":{"start":"node ./bin/http-serve","pretest":"common bin/http-serve lib/ test","test":"vows --spec --isolate"},"contributors":[{"name":"Charlie Robbins","email":"charlie.robbins@gmail.com"},{"name":"Marak Squires","email":"marak.squires@gmail.com"},{"name":"Charlie McConnell","email":"charlie@charlieistheman.com"},{"name":"Joshua Holbrook","email":"josh.holbrook@gmail.com"},{"name":"Maciej Małecki","email":"maciej.malecki@notimplemented.org"},{"name":"Matthew Bergman","email":"mzbphoto@gmail.com"},{"name":"brad dunbar","email":"dunbarb2@gmail.com"},{"name":"Dominic Tarr"},{"name":"Travis Person","email":"travis.person@gmail.com"},{"name":"Jinkwon Lee","email":"master@bdyne.net"},{"name":"Karmalita Dmytro","email":"dmitriy.karmalita@gmail.com"}],"dependencies":{"colors":"1.0.3","corser":"~2.0.0","ecstatic":"^2.0.0","http-proxy":"^1.8.1","opener":"~1.4.0","optimist":"0.6.x","portfinder":"0.4.x","union":"~0.4.3"},"devDependencies":{"common-style":"^3.0.0","request":"2.49.x","vows":"0.7.x"},"license":"MIT","preferGlobal":"true","bin":{"http-serve":"./bin/http-serve","hs":"./bin/http-serve"},"gitHead":"3b7a53644b1317fbffe91e16a83c4eb5f0b635a1","bugs":{"url":"https://github.com/dkarmalita/http-serve/issues"},"homepage":"https://github.com/dkarmalita/http-serve#readme","_id":"http-serve@1.0.1","_shasum":"bb824bf8fed2092e9195837b0bf7b3b6fa3ca2f8","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"hojyman","email":"altmine@gmail.com"},"dist":{"shasum":"bb824bf8fed2092e9195837b0bf7b3b6fa3ca2f8","tarball":"https://registry.npmjs.org/http-serve/-/http-serve-1.0.1.tgz","integrity":"sha512-dlIVvTQitN2q/KX9s3r2flAiByI3jqjoIoJ90Qtin+u9m7oWNM88qjwrNxeEVfsI+AE3bQAAdC73WE/0RtnVaQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDcNR0uT8Ez3qFh7nnjZq7P4gEjbFFbAMBo3ABMKEAiXAIhANUWPgAIacZ/Wcb42bpJjA8mjgRBAYiLkVZ1JoFd9kuk"}]},"maintainers":[{"name":"hojyman","email":"altmine@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/http-serve-1.0.1.tgz_1486479471299_0.9985887131188065"}}},"readme":"# http-serve: a command-line http server\n\nThis is an extended version of [http-server](https://www.npmjs.com/package/http-server) strengthened with a support of gzip compression and a fallback option for nonexistent routes (please see 'Available Options' section bellow for details). Together with `https` support, it make the server ideal for front-end testing purposes.\n\n---\n\n`http-serve` itself is a simple, zero-configuration command-line http server.  It is powerful enough for production usage, but it's simple and hackable enough to be used for testing, local development, and learning.\n\n![](https://github.com/dkarmalita/http-serve/raw/master/screenshots/public.png)\n\n\n# Installing\n\nInstallation globally via `npm`:\n\n     npm i -g http-serve\n\nThis will install `http-serve` globally so that it may be run from the command line.\n\nOr it can be installed locally, for a project:\n\n     npm i -D http-serve\n\n\n## Usage:\n\n     http-serve [path] [options]\n\n`[path]` defaults to `./public` if the folder exists, and `./` otherwise.\n\n\n## Usage\n\n### Starting http-serve locally\n\n     node bin/http-serve\n\n*Now you can visit http://localhost:8080 to view your server*\n\n## Available Options:\n\n`-p` Port to use (defaults to 8080)\n\n`-a` Address to use (defaults to 0.0.0.0)\n\n`-d` Show directory listings (defaults to 'True')\n\n`-i` Display autoIndex (defaults to 'True')\n\n`-g` or `--gzip` When enabled (defaults to 'False') it will serve `./public/some-file.js.gz` in place of `./public/some-file.js` when a gzipped version of the file exists and the request accepts gzip encoding.\n\n`-e` or `--ext` Default file extension if none supplied (defaults to 'html')\n\n`-s` or `--silent` Suppress log messages from output\n\n`--cors` Enable CORS via the `Access-Control-Allow-Origin` header\n\n`-o` Open browser window after starting the server\n\n`-c` Set cache time (in seconds) for cache-control max-age header, e.g. -c10 for 10 seconds (defaults to '3600'). To disable caching, use -c-1.\n\n`-U` or `--utc` Use UTC time format in log messages.\n\n`-P` or `--proxy` Proxies all requests which can't be resolved locally to the given url. e.g.: -P http://someurl.com\n\n`-S` or `--ssl` Enable https.\n\n`-C` or `--cert` Path to ssl cert file (default: cert.pem).\n\n`-K` or `--key` Path to ssl key file (default: key.pem).\n\n`-r` or `--robots` Provide a /robots.txt (whose content defaults to 'User-agent: *\\nDisallow: /')\n`-f` or `--fallback` Provide a fallback url if response returns 404 - useful for SPA frameworks\n\n`-h` or `--help` Print this list and exit.\n\n## Example\n\n    http-serve ./dist --gzip -p /\n\nIt will run the http server for `./dist` content dirctory, with gzip commpression suport. All of the nonexistent routes will be redirected to the host's root - `/`.\n","maintainers":[{"name":"hojyman","email":"altmine@gmail.com"}],"time":{"modified":"2022-06-18T22:15:46.711Z","created":"2017-02-07T14:36:56.227Z","0.9.0":"2017-02-07T14:36:56.227Z","0.9.1":"2017-02-07T14:39:57.096Z","1.0.0":"2017-02-07T14:43:00.719Z","1.0.1":"2017-02-07T14:57:51.958Z"},"homepage":"https://github.com/dkarmalita/http-serve#readme","keywords":["cli","command","http","https","gzip","gz","fallback"],"repository":{"type":"git","url":"git://github.com/dkarmalita/http-serve.git"},"contributors":[{"name":"Charlie Robbins","email":"charlie.robbins@gmail.com"},{"name":"Marak Squires","email":"marak.squires@gmail.com"},{"name":"Charlie McConnell","email":"charlie@charlieistheman.com"},{"name":"Joshua Holbrook","email":"josh.holbrook@gmail.com"},{"name":"Maciej Małecki","email":"maciej.malecki@notimplemented.org"},{"name":"Matthew Bergman","email":"mzbphoto@gmail.com"},{"name":"brad dunbar","email":"dunbarb2@gmail.com"},{"name":"Dominic Tarr"},{"name":"Travis Person","email":"travis.person@gmail.com"},{"name":"Jinkwon Lee","email":"master@bdyne.net"},{"name":"Karmalita Dmytro","email":"dmitriy.karmalita@gmail.com"}],"bugs":{"url":"https://github.com/dkarmalita/http-serve/issues"},"license":"MIT","readmeFilename":"README.md","users":{"shakakira":true,"duartemendes":true}}