{"_id":"@actra-development-oss/http-server","_rev":"4-14f6f9fa13d8291b9840e2c7bb56bc5a","name":"@actra-development-oss/http-server","dist-tags":{"latest":"0.11.2"},"versions":{"0.11.1":{"name":"@actra-development-oss/http-server","version":"0.11.1","description":"A simple zero-configuration command-line http server with support for SPAs","main":"./lib/http-server","repository":{"type":"git","url":"git://github.com/actra-development-oss/http-server.git"},"keywords":["cli","command"],"scripts":{"start":"node ./bin/http-server","pretest":"common bin/http-server lib/ test","test":"vows --spec --isolate"},"files":["lib","bin"],"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":"BigBlueHat","email":"byoung@bigbluehat.com"}],"dependencies":{"colors":"1.0.3","corser":"~2.0.0","ecstatic":"^3.0.0","http-proxy":"^1.8.1","opener":"~1.4.0","optimist":"0.6.x","portfinder":"^1.0.13","union":"~0.4.3"},"devDependencies":{"common-style":"^3.0.0","request":"2.49.x","vows":"0.7.x"},"bugs":{"url":"https://github.com/nodeapps/http-server/issues"},"license":"MIT","preferGlobal":"true","bin":{"http-server":"./bin/http-server","hs":"./bin/http-server"},"licenseText":"Copyright (c) 2011 Charlie Robbins, Marak Squires, and the Contributors.\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\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"@actra-development-oss/http-server@0.11.1","dist":{"shasum":"f69125ac7568bd933d348333bc53c84cc8052266","tarball":"https://registry.npmjs.org/@actra-development-oss/http-server/-/http-server-0.11.1.tgz","fileCount":8,"unpackedSize":15585,"integrity":"sha512-6Q5RYDnLPCHCUCfxQS5yfZ+5B5QmN8DxdK3nrvulpI0BSZnTOWVe453pkNUXKmw0nfhzVgx3bbT2Iu4p85gv0g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDwterdOfTiZGgrmZj9iLfihc3WSW3IDxi852mQhEKv7gIhAILwA36lKNbBYXXMQZLdEA4XNT+Vmj5PzbAdgkujzV+H"}]},"maintainers":[{"name":"g.schuster","email":"npmjs.com@actra.de"}],"_npmUser":{"name":"g.schuster","email":"npmjs.com@actra.de"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/http-server_0.11.1_1520344324096_0.6767962682502444"},"_hasShrinkwrap":false},"0.11.2":{"name":"@actra-development-oss/http-server","version":"0.11.2","description":"A simple zero-configuration command-line http server with support for SPAs","main":"./lib/http-server","repository":{"type":"git","url":"git://github.com/actra-development-oss/http-server.git"},"keywords":["cli","command"],"scripts":{"start":"node ./bin/http-server","pretest":"common bin/http-server lib/ test","test":"vows --spec --isolate"},"files":["lib","bin"],"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":"BigBlueHat","email":"byoung@bigbluehat.com"},{"name":"Gabriel Schuster","email":"opensource@actra.de"}],"dependencies":{"colors":"1.0.3","corser":"~2.0.0","ecstatic":"^3.0.0","http-proxy":"^1.8.1","opener":"~1.4.0","optimist":"0.6.x","portfinder":"^1.0.13","union":"~0.4.3"},"devDependencies":{"common-style":"^3.0.0","request":"2.49.x","vows":"0.7.x"},"bugs":{"url":"https://github.com/nodeapps/http-server/issues"},"license":"MIT","preferGlobal":"true","bin":{"http-server":"./bin/http-server","hs":"./bin/http-server"},"licenseText":"Copyright (c) 2011 Charlie Robbins, Marak Squires, and the Contributors.\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\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","_id":"@actra-development-oss/http-server@0.11.2","dist":{"shasum":"eb2fb6f098ed36c1daeebae9024956179252fa22","tarball":"https://registry.npmjs.org/@actra-development-oss/http-server/-/http-server-0.11.2.tgz","fileCount":8,"unpackedSize":17093,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbF+KxCRA9TVsSAnZWagAAPCkQAJWnliI49raedQ/lCV0l\nONcu47MjsIMlLlZP3jknSVO3iPN0FQBm2qBw/6N5i6TWxR/p1vDOR91api5p\n+xJgfvrUKmH34gNkJqtYqCGvstz0/xbSgLfJSq1QgAUoA6QwuuqFDjmbwGpl\nst+TKu5gZbMw/+Z/rOwE2hoTM4Jj5OSO5DGERjEld516tWIwos5kLlzK0+an\nFBTdR4QU5quZNBaX6qKXy53TXBNJY5+PjpCrozxX5pHe8392D3mdnDJeuxE8\nOUdXY85GWp76LQkrjfPYlr77O2sEi+itZ/e1QrHojcy0O45fDPFgfq9JpKVK\nmPgz7sZUfnTgv4BCWUwU2ft4WUqG5Z1RVE0t4dlNl4x/SAUxtMet1FhxOgS6\nuvW968HR5Vb4wxlEV9wAVoPcxEMgy2u1/VrifYgP8drRaadnSIFOM8qTTV/t\ntWDNgFtWdMwaJ322g40q675tLexuMawsC/MPHL1vinMjLULqXZABIXfAaBlm\nCGSEW+o+0t06rfIQ35o2wnA6nnXG7ZF8f1c2zwgxvYh7L2zRvrQdSVcOFeIE\nzGvCJWgSq+hyzp4WURe74Ex6qBDZC4wngJiqPfgYMydohbd4sE4bAC2QZyqt\n2fdHXEt4/x8XrQpXgg/YaK6EliNm7ouKngtgNOUcKOiAZ4NLxYyd07x/JCmp\nS9iI\r\n=bZ9p\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-K6rUxaXXqtIpdFfBFQwn/XjSkuuBNNpRhEVB78M8bLnTCdEJApbw1duTbwp/ti2wyAae4yjtsNTpJek0NRcX7Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBYuIL5sNCiCk4B13qvgPjGwnMnasrJZscrFOQAU+jS+AiByInU8Q617EodL9bBlOmZGqQ0FH9z+cU2xTxak6viO3A=="}]},"maintainers":[{"name":"g.schuster","email":"npmjs.com@actra.de"}],"_npmUser":{"name":"g.schuster","email":"npmjs.com@actra.de"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/http-server_0.11.2_1528292016118_0.23616913190272615"},"_hasShrinkwrap":false}},"time":{"created":"2018-03-06T13:52:04.011Z","0.11.1":"2018-03-06T13:52:04.145Z","modified":"2022-06-12T14:16:51.997Z","0.11.2":"2018-06-06T13:33:36.176Z"},"maintainers":[{"name":"g.schuster","email":"npmjs.com@actra.de"}],"description":"A simple zero-configuration command-line http server with support for SPAs","keywords":["cli","command"],"repository":{"type":"git","url":"git://github.com/actra-development-oss/http-server.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":"BigBlueHat","email":"byoung@bigbluehat.com"},{"name":"Gabriel Schuster","email":"opensource@actra.de"}],"bugs":{"url":"https://github.com/nodeapps/http-server/issues"},"license":"MIT","readme":"[![build status](https://img.shields.io/travis/indexzero/http-server.svg?style=flat-square)](https://travis-ci.org/indexzero/http-server)\n[![dependencies status](https://img.shields.io/david/indexzero/http-server.svg?style=flat-square)](https://david-dm.org/indexzero/http-server)\n[![npm](https://img.shields.io/npm/v/http-server.svg?style=flat-square)](https://www.npmjs.com/package/http-server)\n[![license](https://img.shields.io/github/license/indexzero/http-server.svg?style=flat-square)](https://github.com/indexzero/http-server)\n\n# http-server: a command-line http server\n\n`http-server` 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/nodeapps/http-server/raw/master/screenshots/public.png)\n\n# Installing globally:\n\nInstallation via `npm`:\n\n     npm install http-server -g\n\nThis will install `http-server` globally so that it may be run from the command line.\n\n## Usage:\n\n     http-server [path] [options]\n\n`[path]` defaults to `./public` if the folder exists, and `./` otherwise.\n\n*Now you can visit http://localhost:8080 to view your server*\n\n**Note:** Caching is on by default. Add `-c-1` as an option to disable caching.\n\n## Available Options:\n\n`-p <port>` Port to use (defaults to 8080)\n\n`-a <address>` 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 `-f <path>` or `--fallback=<path>` Enable fallback handling by redirecting failed requests (404) to the given URL\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 [ext]` or `--ext[=ext]` Default file extension if none supplied (defaults to 'html' when -e or --ext is specified without giving an extension)\n\n`-s` or `--silent` Suppress log messages from output\n\n`--cors[=headers]` Enable CORS via the `Access-Control-Allow-Origin` header, optionally specify additionally allowed headers as comma-separated list\n\n`-o [url]` Open browser window after starting the server, optionally specify the full URL (including protocol and host) to open\n\n`-c[seconds]` 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 <url>` or `--proxy=<url>` 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 [path]` or `--cert[=path]` Path to ssl cert file (default: cert.pem).\n\n`-K [path]` or `--key[=path]` Path to ssl key file (default: key.pem).\n\n`-r [string]` or `--robots[=string]` Provide a /robots.txt (whose content defaults to 'User-agent: *\\nDisallow: /')\n\n`-h` or `--help` Print this list and exit.\n\n## Magic Files\n\n- `index.html` will be served as the default file to any directory requests.\n- `404.html` will be served if a file is not found. This can be used for Single-Page App (SPA) hosting to serve the entry page.\n\n# Development\n\nCheckout this repository locally, then:\n\n```sh\n$ npm i\n$ node bin/http-server\n```\n\n*Now you can visit http://localhost:8080 to view your server*\n\nYou should see the turtle image in the screenshot above hosted at that URL. See\nthe `./public` folder for demo content.\n","readmeFilename":"README.md"}