{"name":"serve","version":"14.2.0","keywords":["vercel","serve","micro","http-server"],"license":"MIT","_id":"serve@14.2.0","maintainers":[{"name":"nwienert","email":"natewienert@gmail.com"},{"name":"gdborton","email":"gdborton@gmail.com"},{"name":"rauchg","email":"rauchg@gmail.com"},{"name":"timneutkens","email":"tim@timneutkens.nl"},{"name":"matt.straka","email":"matt.j.straka@gmail.com"},{"name":"nick.tracey","email":"nick.tracey@vercel.com"},{"name":"zeit-bot","email":"team@zeit.co"},{"name":"vercel-release-bot","email":"infra+release@vercel.com"},{"name":"leo","email":"mindrun@icloud.com"},{"name":"arunoda","email":"arunoda.susiripala@gmail.com"}],"homepage":"https://github.com/vercel/serve#readme","bugs":{"url":"https://github.com/vercel/serve/issues"},"bin":{"serve":"build/main.js"},"dist":{"shasum":"3d768e88fa13ad8644f2393599189707176e66b8","tarball":"http://registry-npm.ywwl.com/serve/download/serve-14.2.0.tgz","fileCount":4,"integrity":"sha512-+HOw/XK1bW8tw5iBilBz/mJLWRzM8XM6MPxL4J/dKzdxq1vfdEWSwhaR7/yS8EJp5wzvP92p1qirysJvnEtjXg==","signatures":[{"sig":"MEYCIQDwnNqOcSFyKyrdNLBwIRjwfkTFfaoHxoth1N/wz+Vg7gIhAJmNg+dFR05twuvGfD5eqpNxDDBvrVyyivzL+pkeYsnZ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":24997,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj0HL+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqrtxAAoXaAW4/4XE969fqgbhtFLxfxi4CMh8XZAcTjiyP05y6pMQEE\r\nR3fn3tbQ6EmTsHkmhJaN9HnqQ9TkdVOw1zCHEDUPBwfVjk7grEiG3MrPfwMW\r\nR6YtUWim9GbGBh7TyNaIWLPsdvByfkd+Pr77chS8v+DHlQmt2av6UTEk59Cl\r\nsUl1+DqeFh26bqUh3WV4KLJKtzR5zHV8nbUg3RDVpI4vBoqEVkY/wPWCwXY9\r\nB0qmRQq7XfcL50nXzGbuD4PeGUhIstis8X+JmV1OQMsOfjAreX0gi+OnVOXR\r\nzSBn0xjS5qDSfu/74qa5/X8UYWV8hYo5IhXaOwlCtyocjsz/TDNg1TEvwA5V\r\nWrdh0fa2WFlok2V1h4wOQnSFuwAkt/3ZkZ9D+aLr6HrI++IbhUgPr/OpS3xK\r\nGwdIWjlNoLZ4iD6bQ2pPGlg+ZhtsCd3a5uaGXxMhxgVq3NSWj0CAbyx0drB/\r\n/PfYmVafOJb7h091TBc8rq/ofqDo8vv1IoMKBeZmnDpgP8/RhrqgP6/ls7xn\r\n8GMsQ5NKxX+uuQSyGhXpMpws5A/MVIZ8FpNwkXDcCa6NftTI/yiDjh1Y59pC\r\nm8eEXxFPot0IpEovjwS7aRbk+SW2htKrqRRULAEpJzBbc2C3Ilf7+9ayzfY5\r\nPEwqMozwWWpZa3Lzqv5sis34OhDKXVw75Og=\r\n=bmA7\r\n-----END PGP SIGNATURE-----\r\n","size":8417,"noattachment":false,"key":"/serve/-/serve-14.2.0.tgz"},"tsup":{"format":["esm"],"outDir":"./build/","target":"esnext"},"type":"module","_from":"file:serve-14.2.0.tgz","engines":{"node":">= 14"},"scripts":{"lint":"pnpm lint:code && pnpm lint:style","test":"pnpm test:tsc && pnpm test:unit","start":"node ./build/main.js","format":"prettier --write --ignore-path .gitignore .","compile":"tsup ./source/main.ts","develop":"tsx watch ./source/main.ts","test:tsc":"tsc --project tsconfig.json","lint:code":"eslint --max-warnings 0 source/**/*.ts","test:unit":"vitest run --config config/vitest.ts","lint:style":"prettier --check --ignore-path .gitignore .","test:watch":"vitest watch --config config/vitest.ts"},"_npmUser":{"name":"vercel-release-bot","email":"infra+release@vercel.com"},"prettier":"@vercel/style-guide/prettier","_resolved":"/tmp/3d4796ea3f24811e0fc9d2bc4a503ad1/serve-14.2.0.tgz","_integrity":"sha512-+HOw/XK1bW8tw5iBilBz/mJLWRzM8XM6MPxL4J/dKzdxq1vfdEWSwhaR7/yS8EJp5wzvP92p1qirysJvnEtjXg==","repository":{"url":"git+https://github.com/vercel/serve.git","type":"git"},"_npmVersion":"8.19.3","description":"Static file serving and directory listing","directories":{},"lint-staged":{"*":["prettier --ignore-unknown --write"],"tests":["vitest --run"],"source/**/*.ts":["eslint --max-warnings 0 --fix","vitest related --run"]},"_nodeVersion":"18.13.0","dependencies":{"ajv":"8.11.0","arg":"5.0.2","boxen":"7.0.0","chalk":"5.0.1","clipboardy":"3.0.0","compression":"1.7.4","update-check":"1.5.4","@zeit/schemas":"2.29.0","serve-handler":"6.1.5","chalk-template":"0.4.0","is-port-reachable":"4.0.0"},"eslintConfig":{"extends":["./node_modules/@vercel/style-guide/eslint/node.js","./node_modules/@vercel/style-guide/eslint/typescript.js"],"parserOptions":{"project":"tsconfig.json"}},"_hasShrinkwrap":false,"devDependencies":{"c8":"7.12.0","got":"12.1.0","tsx":"3.7.1","tsup":"6.1.3","husky":"8.0.1","eslint":"8.19.0","vitest":"0.18.0","prettier":"2.7.1","typescript":"4.6.4","lint-staged":"13.0.3","@types/compression":"1.7.2","@vercel/style-guide":"3.0.0","@types/serve-handler":"6.1.1"},"_npmOperationalInternal":{"tmp":"tmp/serve_14.2.0_1674605310536_0.9948357092101023","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":1674605310722,"_cnpm_publish_time":1674605310722,"dist-tags":{"latest":"14.2.8","snapshot":"14.2.5-ac84c2e7-20250904133617"}}