{"name":"serve","version":"10.0.1","keywords":["now","serve","micro","http-server"],"author":{"name":"leo"},"license":"MIT","_id":"serve@10.0.1","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":"265f2328dd8cb4da908dc37a90f21dd6e0be47d5","tarball":"http://registry-npm.ywwl.com/serve/download/serve-10.0.1.tgz","fileCount":4,"integrity":"sha512-tqEY5r354//sfhTnFwws9BF+YLy1rg9OYC/FGl2oqq/kvMpXml0frqVPIv8UxA0C8p3dhnbnNqzfpjqQdI/7zA==","signatures":[{"sig":"MEQCIHTpslrukeIHXwEBlAbgd/DOoU1F+PDiaCJVeY5OL3GzAiBeD4yY8Drsliy5e4T+E78AFA1nUl2w1nj8S5o+53kOcw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14819,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbmU1ECRA9TVsSAnZWagAAKYgP/jo50TxGTTSLHEblNLvV\nSxF9p4/Fdy+k0HrVKfmJLVL85UXRqzegfEM5HUdFpJbbLw4cjztaRyHsN7Fe\nM/RKtvUjHq0dznNH1F+RohdKfIdHOjV1/09dI7Z8Bq203EOJj137u76GqMu5\n387/szDUjYZfzXKFOp+bQaOlvld9B2vO4D87xNPX/BeLu9PEivUJu6R4AcaE\nQ65E0r150S1MZZoXjRqY4x+xpVHyOHdzcMa4P5ziC5bBPmYihR/sZMcAgPRR\nwDkMv6v/0b2oWt22yHhdBt4+YN4kZnJfCPD2aEKvwk1kbcGmEUCpOKIyP3tA\nVn9FOg7KkSTOFaqI42RlEE5vfrMM1IWqlfn1YgH4gFTkLZUFCt3bpsf4S/bG\n8h7v88suYL8Qco4ZPI1QFhKE/87OZlEGunYsLsaUYRyKsI8TCvoweLBwdo1t\na1snGlpZavBOe0awmHXj/AwAFuRi4h0/D0EwMwsK0H0YMkzdDAi2o5aa9f3L\nPxaSmqWlemZCh+TYaTuEmIzGhEm7f3SVEOo69yvW9g6yW3Relns0raTO2iG5\njM0NEWsk5VMVnOZbP/5j5DL3LqD7H+I6WfYG8qPSknMKo8u5hGG/pP00/QE7\nZE2Op1AQ/n6cauWKTCUZ/CfevMQcQR83zxVe9eynFEOji/6emJEcj/vTu1on\ny4C+\r\n=h1Xm\r\n-----END PGP SIGNATURE-----\r\n","size":6121,"noattachment":false,"key":"/serve/-/serve-10.0.1.tgz"},"gitHead":"d51868fd592395ba9dde2727113d93b965cb88c5","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":"6.4.1","description":"Static file serving and directory listing","directories":{},"_nodeVersion":"10.10.0","dependencies":{"ajv":"6.5.3","arg":"2.0.0","boxen":"1.3.0","chalk":"2.4.1","clipboardy":"1.2.3","update-check":"1.5.2","@zeit/schemas":"2.6.0","serve-handler":"5.0.0"},"eslintConfig":{"extends":["@zeit/eslint-config-node"]},"_hasShrinkwrap":false,"devDependencies":{"eslint":"5.4.0","@zeit/git-hooks":"0.1.4","@zeit/eslint-config-node":"0.3.0"},"_npmOperationalInternal":{"tmp":"tmp/serve_10.0.1_1536773443986_0.4819726244311575","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":1536773444154,"_cnpm_publish_time":1536773444154,"dist-tags":{"latest":"14.2.8","snapshot":"14.2.5-ac84c2e7-20250904133617"}}