{"_id":"@acadci/httpster","_rev":"1-507c04df8b18990fbdae1500f6c9d023","name":"@acadci/httpster","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.3":{"author":{"name":"PunCha Feng"},"name":"@acadci/httpster","license":"MIT","description":"Simple http server for static content","version":"1.0.3","repository":{"type":"git","url":"git+https://github.com/PunChaFeng/httpster.git"},"keywords":["http","web","server"],"main":"./lib/httpster","bin":{"httpster":"./bin/httpster"},"preferGlobal":"true","scripts":{"prepublish":"coffee -o lib/ src/"},"dependencies":{"commander":"1.2.x","cors":"2.4.x","express":"3.2.x","node-env-file":"0.1.4","serve-index":"^1.6.0"},"devDependencies":{"coffee-script":"1.6.x","should":"~1.2.2","mocha":"~1.11.0"},"engines":{"node":">=0.10.0"},"gitHead":"f0b7aa5f40868f38f356d605385251bca5e7bb30","bugs":{"url":"https://github.com/PunChaFeng/httpster/issues"},"homepage":"https://github.com/PunChaFeng/httpster#readme","_id":"@acadci/httpster@1.0.3","_npmVersion":"5.5.1","_nodeVersion":"8.1.3","_npmUser":{"name":"puncha","email":"puncha.info@gmail.com"},"dist":{"integrity":"sha512-aw3RrBjZVBVCwoeMr7f1bB/syUASt4DDW0RNwVH/m/b5H6n7ETnHaL07IkUyyDl+yzOJbTrPa9IOWjdob1xpCg==","shasum":"4516e9eab7d4b5df168830ac74c72d79cf5ec360","tarball":"https://registry.npmjs.org/@acadci/httpster/-/httpster-1.0.3.tgz","fileCount":6,"unpackedSize":11446,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbOfODCRA9TVsSAnZWagAA4LcP/3mPJLRP9/+T7IjODMY/\nTXeDwwSwg0CRwJhkIOCnFY+7bJS5FqaaLbPe5IaHESCeKt5qNh7gxdhGcf/j\nkI95HKOnTqIGsUdRnAigqxgQWS0PAV9uxIQR8HPRG8Nob+bRcf4Bb2gj0Ujm\niv7CphnmgYFDr3AceRnfKAaE38UW/8oKbZsRaJK0U88yI77GvBUBmGbN7BJe\nssU0w5tUudTptf91tWqAZGi14TaUYuUn+qoPy8hvZAdIAscYEEDu2zztnRrw\n4hgtPzWWyg0XH7241G4bgdnCx6A6+Zu/SRBmHMLGrWvecGILYXWMesCIyJLT\nRQRqPwEUqCyT76DuHaALjHuPIXjETrZS2SR1Q0opMkP0jsYGrRQiy2rZqOdW\nW64AJ8c2sEWreVTN26LgPnqVnJRrRWUCZlkO336jt4e85Z0xjj1BeJOcBht/\nfzt5mzu/048xq33IyCSwRnITRRFQU5NLpyG7z2AzxCs0O0E4FNqmODArFvAB\n3T61+zHEaTuBdZABdv1GSEz0hgy+Oh3eFMXSD8SWRtLU6TBuT6ggs6ioN81s\nODHneCjo5U0ALVK0hLonWRDfu+147AdKlQ+2NkxBJyqzDQmOx/ZxSPYPkwts\naEqhRTC1rOxxG8Ts2cq5WHtLIL3iVvNc3YGespOCU2eFPC1MSlS4SxrkfSmY\nvHoO\r\n=600/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDug3D89Lay+OX5gnOIz3sVEH3qAEYoA0YKl0eZ8f3cSAIgYMyB1INoiWEtWOiySQal3IegovmaiV+JARsDn+6tHNY="}]},"maintainers":[{"name":"puncha","email":"puncha.info@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/httpster_1.0.3_1530524547303_0.20981076167038548"},"_hasShrinkwrap":false}},"time":{"created":"2018-07-02T09:42:27.184Z","1.0.3":"2018-07-02T09:42:27.425Z","modified":"2022-04-04T11:04:54.098Z"},"maintainers":[{"name":"puncha","email":"puncha.info@gmail.com"}],"description":"Simple http server for static content","homepage":"https://github.com/PunChaFeng/httpster#readme","keywords":["http","web","server"],"repository":{"type":"git","url":"git+https://github.com/PunChaFeng/httpster.git"},"author":{"name":"PunCha Feng"},"bugs":{"url":"https://github.com/PunChaFeng/httpster/issues"},"license":"MIT","readme":"httpster\n========\n\nSimple http server for quick loading of content.\n\nInstallation is done via npm, which is installed along with NodeJS on most platforms.\n\n    npm -g install httpster\n\nThen from any directory where you want to have an http service running, just run\n\n    httpster\n\nThat will start up a web server on port 3333 and let you serve up any static content you wish. If you want to change the port or directory that the server runs from pass in the -p or -d options\n\n    httpster -p 8080 -d /home/somedir/public_html\n\n### HTML5 Pushstates\n\nIf you want to run a local site that supports HTML5 Pushstates (aka being able to refresh the page), pass in the option `-s` or `--pushstate`. This will map all 4oh4's to the `index.html` you specified as root directory.\n\n### Basic Authentication\n\nSince you can use httpster to deploy to PaaS providers like heroku you can now secure those deployments with basic authentication.  The `-b` or `--basic_auth` options will read the HTTPSTER_AUTH_USER and HTTPSTER_AUTH_PASS variables from your environment for authentication.\n\n    httpster -b\nor\n    httpster --basic_auth\n\nIf testing this locally you can also use a .env file in the directory you will run httpster from.\n\n    HTTPSTER_AUTH_USER=desired_username\n    HTTPSTER_AUTH_PASS=desired_password\n\nThen use the `-e` or `--env` option to specify to load the environmental variables\n\n    httpster --env --basic_auth\n\n### Contributions\n\nIf you have some issue please feel free to add a ticket here. If you have any suggestions for features that would make this more useful please feel free to let me know.\n\nThanks to @GarthDB for asking for this and making me realize that I needed it too.\n","readmeFilename":"README.md"}