{"name":"serve","version":"12.0.1","keywords":["now","serve","micro","http-server"],"author":{"name":"leo"},"license":"MIT","_id":"serve@12.0.1","maintainers":[{"name":"vercel-release-bot","email":"infra+release@vercel.com"},{"name":"geovanisouza92","email":"geovanisouza92@gmail.com"},{"name":"dglsparsons","email":"dglsparsons@gmail.com"},{"name":"redacted-vercel","email":"a@vercel.com"},{"name":"gkaragkiaouris","email":"gkaragkiaouris2@gmail.com"},{"name":"matheuss","email":"matheus.frndes@gmail.com"},{"name":"igorklopov","email":"igor@klopov.com"},{"name":"leo","email":"mindrun@icloud.com"},{"name":"nkzawa","email":"naoyuki.kanezawa@gmail.com"},{"name":"tootallnate","email":"nathan@tootallnate.net"},{"name":"rauchg","email":"rauchg@gmail.com"},{"name":"timneutkens","email":"tim@timneutkens.nl"},{"name":"javivelasco","email":"javier.velasco86@gmail.com"},{"name":"iamevilrabbit","email":"hello@evilrabb.it"},{"name":"joecohens","email":"joecohenr@gmail.com"},{"name":"quietshu","email":"ds303077135@gmail.com"},{"name":"dav-is","email":"mail@connordav.is"},{"name":"styfle","email":"steven@ceriously.com"},{"name":"zeit-bot","email":"team@zeit.co"},{"name":"lucleray","email":"luc.leray@gmail.com"},{"name":"mglagola","email":"mark.glagola@gmail.com"},{"name":"andybitz","email":"artzbitz@gmail.com"},{"name":"paulogdm","email":"paulogdemitri@gmail.com"},{"name":"anatrajkovska","email":"ana.trajkovska2015@gmail.com"},{"name":"timer","email":"timer150@gmail.com"},{"name":"umegaya","email":"iyatomi@gmail.com"},{"name":"arzafran","email":"franco@studiofreight.com"},{"name":"ijjk","email":"jj@jjsweb.site"},{"name":"mfix22","email":"mrfix84@gmail.com"},{"name":"lfades","email":"luisito453@gmail.com"},{"name":"rabaut","email":"rabautse@gmail.com"},{"name":"coetry","email":"allenhai03@gmail.com"},{"name":"msweeneydev","email":"mail@mcs.dev"},{"name":"williamli","email":"william@bbi.studio"},{"name":"ragojose","email":"ragojosefrancisco@gmail.com"},{"name":"guybedford","email":"guybedford@gmail.com"},{"name":"paco","email":"pvco.coursey@gmail.com"},{"name":"skllcrn","email":"skllcrn@zeit.co"},{"name":"janicklas-ralph","email":"janicklasralph036@gmail.com"},{"name":"atcastle","email":"atcastle@gmail.com"},{"name":"keanulee","email":"npm@keanulee.com"},{"name":"spanicker","email":"shubhie@gmail.com"},{"name":"developit","email":"jason@developit.ca"},{"name":"housseindjirdeh","email":"houssein.djirdeh@gmail.com"},{"name":"gmonaco","email":"gbmonaco@google.com"},{"name":"kikobeats","email":"josefrancisco.verdu@gmail.com"},{"name":"prateekbh","email":"prateek89born@gmail.com"},{"name":"jkrems","email":"jan.krems@gmail.com"},{"name":"jaredpalmer","email":"jared@palmer.net"},{"name":"gielcobben","email":"g.cobben@gmail.com"},{"name":"chibicode","email":"shu@chibicode.com"},{"name":"nazarenooviedo","email":"nazareno@basement.studio"},{"name":"samsisle","email":"samko9522@gmail.com"},{"name":"okbel","email":"curciobel@gmail.com"},{"name":"hankvercel","email":"hank@vercel.com"},{"name":"leerobinson","email":"lrobinson2011@gmail.com"},{"name":"elsigh","email":"lsimon@commoner.com"},{"name":"julianbenegas","email":"julianbenegas99@gmail.com"},{"name":"rizbizkits","email":"rizwana.akmal@hotmail.com"},{"name":"raunofreiberg","email":"freiberggg@gmail.com"},{"name":"sokra","email":"tobias.koppers@googlemail.com"},{"name":"cl3arglass","email":"haltaffer@gmail.com"},{"name":"chriswdmr","email":"github.wolle404@gmail.com"},{"name":"ernestd","email":"lapapelera@gmail.com"},{"name":"ismaelrumzan","email":"ismaelrumzan@gmail.com"},{"name":"jhoch","email":"jrshoch@gmail.com"},{"name":"mitchellwright","email":"mitchellbwright@gmail.com"},{"name":"mrmckeb","email":"mrmckeb.npm@outlook.com"},{"name":"kuvos","email":"npm-public@qfox.nl"},{"name":"creationix","email":"tim@creationix.com"},{"name":"aboodman","email":"aaron@aaronboodman.com"},{"name":"huozhi","email":"inbox@huozhi.im"},{"name":"cmvnk","email":"christina@vercel.com"},{"name":"arv","email":"erik.arvidsson@gmail.com"},{"name":"ktcarter","email":"ktcarter09@gmail.com"},{"name":"padmaia","email":"dev@padmaia.rocks"},{"name":"delba","email":"delbabrown@gmail.com"},{"name":"catsaremlg","email":"joshuadgon@gmail.com"},{"name":"steventey","email":"stevensteel97@gmail.com"},{"name":"gsandhu","email":"gsandhu@csumb.edu"},{"name":"dbredvick","email":"dbredvick@gmail.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":"bin/serve.js"},"git":{"pre-commit":"lint-staged"},"dist":{"shasum":"5b0e05849f5ed9b8aab0f30a298c3664bba052bb","tarball":"http://registry-npm.ywwl.com/serve/download/serve-12.0.1.tgz","fileCount":4,"integrity":"sha512-CQ4ikLpxg/wmNM7yivulpS6fhjRiFG6OjmP8ty3/c1SBnSk23fpKmLAV4HboTA2KrZhkUPlDfjDhnRmAjQ5Phw==","signatures":[{"sig":"MEUCID4IIbUr1KibUSpUNUX0K38iNozzuIxKomR0rBanK08/AiEA4pjelyQQ5atS427QrlY+Co/FVrD7q/TSZ7oEw7UGz08=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":17697,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhOnCtCRA9TVsSAnZWagAAhAwP/3m6Jb+Yw12nJCUO4i26\n4rZzQP/OD7x+co0l9TqCTN5IqPYWhSV391YFO2TpD+2WpysnuwuUbbKGUJfb\nmUXLjPQK5Ec8KsqaO9UdTO2fjqGS2xF0Ep7MYJHtnbn95lSUQ5jcnzu2bhZ3\nWXnqJQY5DAsTO2ofsodtMCWGL2ohXOpAcHeHVnrAM+8r0bCBMUSQbdalJpk6\nBssz7ZZy8eEp/ir9ddEDQof+WuO30rWT5PAB67B8d/UPP+qyh3uqbqpXf3Q1\nEKzTu+awUwIVP5LOsMNCxJOZwCTSeEwKz02+/cDSp1A+TQRVcnSc3uOpNgSk\nb563CJJXT3iCCHttPKAIYxsz8u885qsajAGDQz3jwGvfJu2skhVswsyOecl+\n4LafS54eKln3Z37sxsYcaq5Dvmxb2KDxAvv9o/uvfX8mXTOdIZcGxvrGMq+Y\n8Uq5yHDOs+g9Rn2W9pPETjuru5w7bWLJtcqLADsWHUK02+xC+6ndgJwisPBW\nFpTA/DPIpZjPm6sOWjamOvsFAkWWCQp5Q2uEpwvW/Vfsa2F7wO35zkh9TCR3\nkS6+0nCSHAsKxY5z5dRYeAlVdm2tcgCw+XHkibO+eLTA8tL4+CS3yGTtYP+H\nFHxP3ZNbi+Ul4DIV55FTnnNTbXq4wmPyBjoaLvqYxT0SL+zXxUfsP06+ncyK\nnRib\r\n=CpDw\r\n-----END PGP SIGNATURE-----\r\n","size":7015,"noattachment":false,"key":"/serve/-/serve-12.0.1.tgz"},"gitHead":"30b06737b41fcab9d0a49bbac8a9b598869550f4","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":"leerobinson","email":"lrobinson2011@gmail.com"},"repository":{"url":"git+https://github.com/vercel/serve.git","type":"git"},"_npmVersion":"6.14.11","description":"Static file serving and directory listing","directories":{},"_nodeVersion":"14.16.0","dependencies":{"ajv":"6.12.6","arg":"2.0.0","boxen":"1.3.0","chalk":"2.4.1","clipboardy":"2.3.0","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_12.0.1_1631219884985_0.15998258520818864","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":1631219885190,"_cnpm_publish_time":1631219885190,"dist-tags":{"latest":"14.2.8","snapshot":"14.2.5-ac84c2e7-20250904133617"}}