{"_id":"@amio/serve","_rev":"6-e2d0277242d20439024f661b4f921c0b","name":"@amio/serve","description":"Simple command-line file / directory server built with connect","dist-tags":{"latest":"2.1.0"},"versions":{"1.5.0":{"name":"@amio/serve","version":"1.5.0","description":"Simple command-line file / directory server built with connect","bin":{"serve":"./bin/serve"},"preferGlobal":true,"repository":{"type":"git","url":"git+https://github.com/amio/serve.git"},"author":{"name":"TJ Holowaychuk","email":"tj@vision-media.ca"},"license":"MIT","dependencies":{"basic-auth-connect":"^1.0.0","commander":"2.9.0","compression":"^1.6.2","connect":"3.4.x","jade":"*","less-middleware":"2.1.x","morgan":"^1.7.0","opn":"4.0.x","serve-favicon":"2.3.x","serve-index":"1.8.x","serve-static":"1.11.x","stylus":"*"},"keywords":["static","server","connect"],"publishConfig":{"access":"public"},"gitHead":"17012f7e33978b18289208f2c24418ffda3b7544","bugs":{"url":"https://github.com/amio/serve/issues"},"homepage":"https://github.com/amio/serve#readme","_id":"@amio/serve@1.5.0","scripts":{},"_shasum":"1e52ea77d4df5bec2beafc2e78337933ce31f353","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"amio","email":"amio.cn@gmail.com"},"dist":{"shasum":"1e52ea77d4df5bec2beafc2e78337933ce31f353","tarball":"https://registry.npmjs.org/@amio/serve/-/serve-1.5.0.tgz","integrity":"sha512-91qFlsqd2d84Micc/Ew2eIyZY92LrvYtflI05ytWy2Lx4M9It93G6fjHBd3sFoE7FmBawXFVCk0XzVYdEPBLRg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBc057bV1yiwKtGu7CmY04OUEnT1IUMMp6oP0+42EiG9AiEA0tQ60GKj9fXQc4jVHAJhd+B0K4x4ZAjDbieeqNtitKk="}]},"maintainers":[{"name":"amio","email":"amio.cn@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/serve-1.5.0.tgz_1470797405640_0.35015598009340465"}},"2.0.0-0":{"name":"@amio/serve","version":"2.0.0-0","description":"Simple command-line file / directory server built with connect","bin":{"serve":"./bin/serve"},"preferGlobal":true,"repository":{"type":"git","url":"git+https://github.com/amio/serve.git"},"author":{"name":"TJ Holowaychuk","email":"tj@vision-media.ca"},"license":"MIT","dependencies":{"basic-auth-connect":"^1.0.0","commander":"2.9.0","compression":"^1.6.2","connect":"3.4.x","morgan":"^1.7.0","opn":"4.0.x","serve-favicon":"2.3.x","serve-index":"1.8.x","serve-static":"1.11.x"},"keywords":["static","server","connect"],"publishConfig":{"access":"public"},"gitHead":"0aaa27b851198253dac2b4791e503d587867f75e","bugs":{"url":"https://github.com/amio/serve/issues"},"homepage":"https://github.com/amio/serve#readme","_id":"@amio/serve@2.0.0-0","scripts":{},"_shasum":"5d37bc1eeb067e7b0463c69dde07130220614426","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"amio","email":"amio.cn@gmail.com"},"dist":{"shasum":"5d37bc1eeb067e7b0463c69dde07130220614426","tarball":"https://registry.npmjs.org/@amio/serve/-/serve-2.0.0-0.tgz","integrity":"sha512-3+Ti+S5+kcwIi92y05wN4mRIgS3WRpMv2cQKMrs6uy2HLtQ423aOeBnh7B4mrAHdU+ZwYfzFLi9rXiYLKUMpJg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG32b0UyZorKBdLeP6JJmRLKS+ncKRyqMzPKE46Qz5wAAiAMLkbDqsNfKCmhUE42YtHh8rUoVOPP7x9ouTCJ8W8XXw=="}]},"maintainers":[{"name":"amio","email":"amio.cn@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/serve-2.0.0-0.tgz_1470823878801_0.6968392103444785"}},"2.0.0":{"name":"@amio/serve","version":"2.0.0","description":"Simple command-line file / directory server built with connect","bin":{"serve":"./bin/serve"},"preferGlobal":true,"repository":{"type":"git","url":"git+https://github.com/amio/serve.git"},"author":{"name":"TJ Holowaychuk","email":"tj@vision-media.ca"},"license":"MIT","dependencies":{"basic-auth-connect":"^1.0.0","commander":"2.9.0","compression":"^1.6.2","connect":"3.4.x","morgan":"^1.7.0","opn":"4.0.x","serve-favicon":"2.3.x","serve-index":"1.8.x","serve-static":"1.11.x"},"keywords":["static","server","connect"],"publishConfig":{"access":"public"},"gitHead":"8913475ada4281c014a4e450be765cd588184f71","bugs":{"url":"https://github.com/amio/serve/issues"},"homepage":"https://github.com/amio/serve#readme","_id":"@amio/serve@2.0.0","scripts":{},"_shasum":"e01758c8cc486fd5fd5f301777702f2992259afb","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.4.0","_npmUser":{"name":"amio","email":"amio.cn@gmail.com"},"dist":{"shasum":"e01758c8cc486fd5fd5f301777702f2992259afb","tarball":"https://registry.npmjs.org/@amio/serve/-/serve-2.0.0.tgz","integrity":"sha512-LZjGWXiP5wrkM0Bh5P8aDBKNXP8mJrTcZ5FKxw3tiLhaKfCNmGJQxLuMP2AgMly2xOfhOT/G7+82K809mupEAg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFehwI4wQvUPOd7j9mmqvyNtAiL1+5d7AMlsmugPXk23AiBXppwR8PRTquC1uWm2Rs2t69SgLRe/Dz5B0kA5qPD38w=="}]},"maintainers":[{"name":"amio","email":"amio.cn@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/serve-2.0.0.tgz_1471491131724_0.3253914029337466"}},"2.1.0":{"name":"@amio/serve","version":"2.1.0","description":"Simple command-line file / directory server built with connect","bin":{"serve":"./bin/serve"},"preferGlobal":true,"repository":{"type":"git","url":"git+https://github.com/amio/serve.git"},"author":{"name":"TJ Holowaychuk","email":"tj@vision-media.ca"},"license":"MIT","dependencies":{"basic-auth-connect":"^1.0.0","commander":"2.9.0","compression":"^1.6.2","connect":"3.4.x","http2":"^3.3.6","morgan":"^1.7.0","opn":"4.0.x","serve-favicon":"2.3.x","serve-index":"1.8.x","serve-static":"1.11.x"},"keywords":["static","server","connect"],"publishConfig":{"access":"public"},"gitHead":"f8656cf71200af07513e77aaf6ff9fabd38ac6e4","bugs":{"url":"https://github.com/amio/serve/issues"},"homepage":"https://github.com/amio/serve#readme","_id":"@amio/serve@2.1.0","scripts":{},"_shasum":"28db02d825de3fa4b9d9a3f9baef344b491d9bb9","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"amio","email":"amio.cn@gmail.com"},"dist":{"shasum":"28db02d825de3fa4b9d9a3f9baef344b491d9bb9","tarball":"https://registry.npmjs.org/@amio/serve/-/serve-2.1.0.tgz","integrity":"sha512-e63Mjaa3x+UQ4ttXOhPXaMUHP2SHAtU6OTgkCXv4TFiSJ/cvoDXnzBIE/2n+YTg18PDMt9cfZot8HimUsd3xCQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDC2cjzMoDjd93zEQvb3hq8b8KWXQNHtufvFCxF2XW8NwIgNMJZZVqWHtwOTfJo3MT7k+vYm1vd5SEv1kOoGWj8ojw="}]},"maintainers":[{"name":"amio","email":"amio.cn@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/serve-2.1.0.tgz_1477229553993_0.35344223701395094"}}},"readme":"# @amio/serve [![npm-version][npm-badge]][npm-link]\n\nHandy http/https server, evolved from TJ's original [serve](https://github.com/tj/serve), which inspired by nodejitsu's [http-server](https://github.com/nodejitsu/http-server).\n\n> Original `serve` is awesome, but seems lacks of maintenance these days,\n> there's some useful fixes & features added to the codebase\n> [since](https://github.com/tj/serve/compare/1.4.0...master) it's\n> latest release in Mar 2014, but couldn't get landed to users,\n> it's more than two years by now.  \n> So here is this ongoing `serve`, and also an opinionated `serve`,\n> which removed support for jade and stylus, for a much smaller installation footprint.\n\n**Difference with `serve`**:\n\n- Doesn't support jade and stylus ([Opinionated](https://github.com/amio/serve/issues/2)),\n- so comes minimal installation footprint ([1.8M vs 15M](https://github.com/amio/serve/issues/2#issuecomment-238825598)).\n- `-o, --open` opens a browser window to this server.\n- `-s, --https` also serve over https.\n\n## Installation\n\n    $ npm install -g @amio/serve\n\n## Usage\n\n```\nUsage: serve [options] [dir]\n\nOptions:\n\n  -h, --help                output usage information\n  -V, --version             output the version number\n  -o, --open                opens a browser window to this server\n  -a, --auth <user>:<pass>  specify basic auth credentials\n  -F, --format <fmt>        specify the log format string\n  -p, --port <port>         specify the port [3000]\n      --https-port <port>   specify the port [3443]\n  -H, --hidden              enable hidden file serving\n  -I, --no-icons            disable icons\n  -L, --no-logs             disable request logging\n  -D, --no-dirs             disable directory serving\n  -f, --favicon <path>      serve the given favicon\n  -c, --cors                allows cross origin access serving\n  -s, --https               also serve over https\n      --key                 key file path for https\n      --cert                certificate file for https\n      --ca                  CA certificate file for https\n      --compress            gzip or deflate the response\n      --exec <cmd>          execute command on each request\n```\n\n## Examples\n\nHTTP Accept support built into `connect.directory()`:\n\n```bash\n$ curl http://localhost:3000/ -H \"Accept: text/plain\"\n\n  bin\n  History.md\n  node_modules\n  package.json\n  Readme.md\n```\n\nRequesting a file:\n\n    $ curl http://localhost:3000/README.md\n\nRequesting JSON for the directory listing:\n\n    $ curl http://localhost:3000/ -H \"Accept: application/json\"\n    [\"bin\",\"History.md\",\"node_modules\",\"package.json\",\"Readme.md\"]\n\nDirectory listing served by [serve-index](https://github.com/expressjs/serve-index) middleware.\n\n## License\n\nMIT License (c) 2011 TJ Holowaychuk\n\n[npm-badge]: https://img.shields.io/npm/v/@amio/serve.svg?style=flat-square\n[npm-link]: http://www.npmjs.com/package/@amio/serve\n","maintainers":[{"name":"amio","email":"amio.cn@gmail.com"}],"time":{"modified":"2022-06-12T14:39:10.083Z","created":"2016-08-10T02:50:07.239Z","1.5.0":"2016-08-10T02:50:07.239Z","2.0.0-0":"2016-08-10T10:11:22.583Z","2.0.0":"2016-08-18T03:32:11.962Z","2.1.0":"2016-10-23T13:32:35.301Z"},"homepage":"https://github.com/amio/serve#readme","keywords":["static","server","connect"],"repository":{"type":"git","url":"git+https://github.com/amio/serve.git"},"author":{"name":"TJ Holowaychuk","email":"tj@vision-media.ca"},"bugs":{"url":"https://github.com/amio/serve/issues"},"license":"MIT","readmeFilename":"README.md"}