{"name":"serve","version":"11.3.2","keywords":["now","serve","micro","http-server"],"author":{"name":"leo"},"license":"MIT","_id":"serve@11.3.2","maintainers":[{"name":"alexaltea","email":"alexandro@phi.nz"},{"name":"anatrajkovska","email":"ana.trajkovska2015@gmail.com"},{"name":"andybitz","email":"artzbitz@gmail.com"},{"name":"arunoda","email":"arunoda.susiripala@gmail.com"},{"name":"arzafran","email":"franco@basement.studio"},{"name":"atcastle","email":"atcastle@gmail.com"},{"name":"caarlos0","email":"caarlos0@gmail.com"},{"name":"chibicode","email":"shu@chibicode.com"},{"name":"cleishm","email":"chris@leishman.org"},{"name":"codetheory","email":"thecodetheory@gmail.com"},{"name":"coetry","email":"allenhai03@gmail.com"},{"name":"dav-is","email":"mail@connordav.is"},{"name":"developit","email":"jason@developit.ca"},{"name":"fivepointseven","email":"fivepointseven@icloud.com"},{"name":"gielcobben","email":"g.cobben@gmail.com"},{"name":"gmonaco","email":"gbmonaco@google.com"},{"name":"guybedford","email":"guybedford@gmail.com"},{"name":"housseindjirdeh","email":"houssein.djirdeh@gmail.com"},{"name":"iamevilrabbit","email":"hello@evilrabb.it"},{"name":"igorklopov","email":"igor@klopov.com"},{"name":"ijjk","email":"jj@jjsweb.site"},{"name":"janicklas-ralph","email":"janicklasralph036@gmail.com"},{"name":"jaredpalmer","email":"jared@palmer.net"},{"name":"javivelasco","email":"javier.velasco86@gmail.com"},{"name":"jkrems","email":"jan.krems@gmail.com"},{"name":"joecohens","email":"joecohenr@gmail.com"},{"name":"juancampa","email":"juancampa@gmail.com"},{"name":"keanulee","email":"npm@keanulee.com"},{"name":"kikobeats","email":"josefrancisco.verdu@gmail.com"},{"name":"leo","email":"mindrun@icloud.com"},{"name":"lfades","email":"luisito453@gmail.com"},{"name":"lucleray","email":"luc.leray@gmail.com"},{"name":"matheuss","email":"me@matheus.top"},{"name":"maxleiter","email":"maxwell.leiter@gmail.com"},{"name":"mfix22","email":"mrfix84@gmail.com"},{"name":"mglagola","email":"mark.glagola@gmail.com"},{"name":"msweeneydev","email":"mail@msweeneydev.com"},{"name":"nazarenooviedo","email":"nazareno@basement.studio"},{"name":"nkzawa","email":"naoyuki.kanezawa@gmail.com"},{"name":"paco","email":"pvco.coursey@gmail.com"},{"name":"paulogdm","email":"paulogdemitri@gmail.com"},{"name":"prateekbh","email":"prateek89born@gmail.com"},{"name":"quietshu","email":"ds303077135@gmail.com"},{"name":"rabaut","email":"rabautse@gmail.com"},{"name":"ragojose","email":"ragojosefrancisco@gmail.com"},{"name":"rauchg","email":"rauchg@gmail.com"},{"name":"samsisle","email":"samko9522@gmail.com"},{"name":"sarupbanskota","email":"sbanskota08@gmail.com"},{"name":"skllcrn","email":"skllcrn@zeit.co"},{"name":"spanicker","email":"shubhie@gmail.com"},{"name":"styfle","email":"steven@ceriously.com"},{"name":"timer","email":"timer150@gmail.com"},{"name":"timneutkens","email":"tim@timneutkens.nl"},{"name":"tootallnate","email":"nathan@tootallnate.net"},{"name":"umegaya","email":"iyatomi@gmail.com"},{"name":"williamli","email":"williamli@bbi.io"},{"name":"zeit-bot","email":"team@zeit.co"}],"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":"b905e980616feecd170e51c8f979a7b2374098f5","tarball":"http://registry-npm.ywwl.com/serve/download/serve-11.3.2.tgz","fileCount":4,"integrity":"sha512-yKWQfI3xbj/f7X1lTBg91fXBP0FqjJ4TEi+ilES5yzH0iKJpN5LjNb1YzIfQg9Rqn4ECUS2SOf2+Kmepogoa5w==","signatures":[{"sig":"MEYCIQDQ+BNikhcp7NdkpvIX8u0K5ReYE15qPc6hhcgDbjJ7jAIhAM9sJqJIuk/UbFBa6a+q4iLiXBWv94uILg+IAaSVtsET","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17203,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe2ZsiCRA9TVsSAnZWagAAKD4QAJ0/0SnnFoUeKoYz0FqC\nJHE0T150Sm2Jyga3lzZLr1GeCJ4AigUPvDtJvzmIVMcJIGTio0aYTNpnKatN\nOmgCOzVdM4GaPeNh2ddAIzOkwS+NXU1RIyvK+FJoTg9oDMJx5dUSMV5wMHiH\nHj4YiPDEexYYCezbyvMvx4VujyhAXifH/y2/fJvJRxoOBvjdIP1lVJT7+mS9\n7eHdY+7O3+MDCJ2qTOVcAlAGp+nH9qRJk+lH+IuzPRrJwvb/E3jUZK0E835q\nFeCwFI4oiaxZprj8YiwvNMPl4viBMbe4lbBFdPvSkQlUpngm70qFE1OWZXkC\nlA5rQc8T1kaTLShTdLBlXi25qqhREtRNC065vg1aCv5GLVIi/gEelON9T8Au\n0BrbwWeajxM592nnQdy5LDzZhUucPe0mvcm0v6AqDQPaXmhehRAF0BrUwFFl\nRaw1bIbW12qQcMlMyrC8FJ3ir+gK3DGtLlFy651g0DWUuvlJdyH4K2FZrwz0\ncC6aECU709qI1VWMJ+MQcUuOaLaf7oyOFy8pqboLrmcf32kdq159WzKB/1wD\nnx4tg6qe7x7mCfZi8+cdZOdD+xdia5WqZJSYrAsxbuar+Eo5IsHf1Ga1ugkM\nvRxxRMYKufJNmD9kFSMzBqcO4S6HxgS4TNZUi8YPNmyE+h2MGuF5HwfJJIsg\nNZOp\r\n=txDs\r\n-----END PGP SIGNATURE-----\r\n","size":6888,"noattachment":false,"key":"/serve/-/serve-11.3.2.tgz"},"gitHead":"c81f55c68c54aac47914a8777d7295264af41042","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":"tootallnate","email":"nathan@tootallnate.net"},"repository":{"url":"git+https://github.com/zeit/serve.git","type":"git"},"_npmVersion":"6.14.5","description":"Static file serving and directory listing","directories":{},"_nodeVersion":"12.16.2","dependencies":{"ajv":"6.5.3","arg":"2.0.0","boxen":"1.3.0","chalk":"2.4.1","clipboardy":"1.2.3","compression":"1.7.3","update-check":"1.5.2","@zeit/schemas":"2.6.0","serve-handler":"6.1.3"},"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_11.3.2_1591319329896_0.5360389134160259","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":1591319330007,"_cnpm_publish_time":1591319330007,"dist-tags":{"latest":"14.2.8","snapshot":"14.2.5-ac84c2e7-20250904133617"}}