{"name":"serve","version":"7.1.0","keywords":["now","serve","micro","http-server"],"author":{"name":"leo"},"license":"MIT","_id":"serve@7.1.0","maintainers":[{"name":"arunoda","email":"arunoda.susiripala@gmail.com"},{"name":"leo","email":"leo@zeit.co"},{"name":"rauchg","email":"rauchg@gmail.com"},{"name":"timneutkens","email":"tim@timneutkens.nl"}],"homepage":"https://github.com/zeit/serve#readme","bugs":{"url":"https://github.com/zeit/serve/issues"},"bin":{"serve":"./bin/serve.js"},"git":{"pre-commit":"lint-staged"},"dist":{"shasum":"4eba44ef46b5d902fd650f9baf2fc8a2997ce405","tarball":"http://registry-npm.ywwl.com/serve/download/serve-7.1.0.tgz","fileCount":4,"integrity":"sha512-zKAEee1aYeMd6+pOA5526yuAdvEZDj/DGJ6z1u5pfFi03wc1K8BvIBdpAaCblg9nNK/z3x6WDxxiPQoAkQni4g==","signatures":[{"sig":"MEUCIGQ3s3rfdODyXtVpA4NnpPgPTo8uwFZN/3bIMSsEDOVhAiEA2U2MP00xs1+g2oC+xx0CBp7PhAM6bCoWqK+81eKimWQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12083,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbDS79CRA9TVsSAnZWagAAo+0P/1yZYnQwT9SPC035SRE8\nShDALLR72Ug7ja675mxX3scXZPPqxdCtAxmfeyZuhZeOAcnDdrop5vTDI0ey\nGn6Zln076v+3xOMM0q3iQqBVRLFRSdvYKRpX+bugoq3nXdjX7sMJy+jUglyD\nG9ghf5asjzMRpjIfnyKqSDI29u7IMnN/e+ZyRTfs16eID6rVGOAlxybXYK+6\nAMK0KdOQc/n0se48ddVuU3isHzigQsjA55EQbVRFHqVXA0ZpV8iTQd7qLhUH\nxAXDWgZHOsy9DgI60LDdveOALHpAtLfzW3YLlh8RCi152juYFq93JhXsSA6b\nu34k3hgiaemUUv21HzBZdcNkrjcjZRzlT+MlTij15nPwS/BlcAbNllYFGKNA\nIDeJAlpr0+5MdE7o5k4XK7oPIUKBkem8dNIul4fGrn/NN/IbSsP97IpXAxTG\nI/5r4B6NsIzIXt6+9KVdBbZ3uoFzsaSHgYUO5awotNa3FbWhawZ+RmwUNYdN\nXhyuXGC41JV+gY3z/59sOyFhDaaQgfCt0lfliMOUKpUDTElx9Zk8vzknvpRj\niPBiVF+9k7/Zh2g2Nxd+l84DIM/aaZAbCpGK5ptPxin431OKv6yFoU42F3j6\nyRVWNl17pmKbaUg4/Ew4g1yrf3cQxB1xoBNDmh9lH20bVjaAIR9IE7NPpP1E\numJJ\r\n=mfuY\r\n-----END PGP SIGNATURE-----\r\n","size":5210,"noattachment":false,"key":"/serve/-/serve-7.1.0.tgz"},"files":["bin"],"gitHead":"a567a0a3fde1e4a30da88678db2d7c219aeb6b6b","scripts":{"lint":"zeit-eslint --ext .jsx,.js .","test":"yarn lint","lint-staged":"git diff --diff-filter=ACMRT --cached --name-only '*.js' '*.jsx' | xargs zeit-eslint"},"_npmUser":{"name":"leo","email":"leo@zeit.co"},"repository":{"url":"git+https://github.com/zeit/serve.git","type":"git"},"_npmVersion":"5.6.0","description":"Static file serving and directory listing","directories":{},"_nodeVersion":"10.2.1","dependencies":{"ajv":"6.5.0","arg":"2.0.0","chalk":"2.4.1","update-check":"1.5.2","@zeit/schemas":"1.1.1","serve-handler":"2.3.12"},"eslintConfig":{"extends":["@zeit/eslint-config-node"]},"_hasShrinkwrap":false,"devDependencies":{"eslint":"4.19.1","@zeit/git-hooks":"0.1.4","@zeit/eslint-config-node":"0.2.13"},"_npmOperationalInternal":{"tmp":"tmp/serve_7.1.0_1527590652693_0.032796810481380057","host":"s3://npm-registry-packages"},"readme":"![Serve Logo](https://raw.githubusercontent.com/vercel/serve/main/media/banner.png)\n\n<div align=\"center\">\n  <a aria-label=\"Vercel logo\" href=\"https://vercel.com\">\n    <img src=\"https://img.shields.io/badge/made%20by-vercel-%23000000\">\n  </a>\n  <br>\n  <a aria-label=\"Install Size\" href=\"https://packagephobia.com/result?p=serve\">\n    <img src=\"https://packagephobia.com/badge?p=serve\">\n  </a>\n  <a aria-label=\"Stars\" href=\"https://github.com/vercel/serve/stargazers\">\n    <img src=\"https://img.shields.io/github/stars/vercel/serve\">\n  </a>\n  <a aria-label=\"Build Status\" href=\"https://github.com/vercel/serve/actions/workflows/ci.yaml\">\n    <img src=\"https://github.com/vercel/serve/actions/workflows/ci.yaml/badge.svg\">\n  </a>\n</div>\n\n---\n\n`serve` helps you serve a static site, single page application or just a static file (no matter if on your device or on the local network). It also provides a neat interface for listing the directory's contents:\n\n![Listing UI](https://raw.githubusercontent.com/vercel/serve/main/media/listing-ui.png)\n\n> Once it's time to push your site to production, we recommend using [Vercel](https://vercel.com).\n\n## Usage\n\n> `serve` v14 onwards requires Node v14 to run. Please use `serve` v13 if you cannot upgrade to Node v14.\n\nThe quickest way to get started is to just run `npx serve` in your project's directory.\n\nIf you prefer, you can also install the package globally (you'll need at least [Node LTS](https://github.com/nodejs/Release#release-schedule)):\n\n```bash\n> npm install --global serve\n```\n\nOnce that's done, you can run this command inside your project's directory...\n\n```bash\n> serve\n```\n\n...or specify which folder you want to serve:\n\n```bash\n> serve folder-name/\n```\n\nFinally, run this command to see a list of all available options:\n\n```bash\n> serve --help\n```\n\nNow you understand how the package works! :tada:\n\n## Configuration\n\nTo customize `serve`'s behavior, create a `serve.json` file in the public folder and insert any of [these properties](https://github.com/vercel/serve-handler#options).\n\n## API\n\nThe core of `serve` is [`serve-handler`](https://github.com/vercel/serve-handler), which can be used as middleware in existing HTTP servers:\n\n```js\nconst handler = require('serve-handler');\nconst http = require('http');\n\nconst server = http.createServer((request, response) => {\n  // You pass two more arguments for config and middleware\n  // More details here: https://github.com/vercel/serve-handler#options\n  return handler(request, response);\n});\n\nserver.listen(3000, () => {\n  console.log('Running at http://localhost:3000');\n});\n```\n\n> You can also replace `http.createServer` with [`micro`](https://github.com/vercel/micro).\n\n## Issues and Contributing\n\nIf you want a feature to be added, or wish to report a bug, please open an issue [here](https://github.com/vercel/serve/issues/new).\n\nIf you wish to contribute to the project, please read the [contributing guide](contributing.md) first.\n\n## Credits\n\nThis project used to be called `list` and `micro-list`. But thanks to [TJ Holowaychuk](https://github.com/tj) handing us the new name, it's now called `serve` (which is much more definite).\n\n## Author\n\nLeo Lamprecht ([@notquiteleo](https://twitter.com/notquiteleo))\n","publish_time":1527590652743,"_cnpm_publish_time":1527590652743,"dist-tags":{"latest":"14.2.8","snapshot":"14.2.5-ac84c2e7-20250904133617"}}