Socket
Socket
Sign inDemoInstall

serve

Package Overview
Dependencies
Maintainers
57
Versions
152
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serve - npm Package Compare versions

Comparing version 11.3.1 to 11.3.2

2

bin/serve.js

@@ -86,2 +86,4 @@ #!/usr/bin/env node

-C, --cors Enable CORS, sets \`Access-Control-Allow-Origin\` to \`*\`
-n, --no-clipboard Do not copy the local address to the clipboard

@@ -88,0 +90,0 @@

4

package.json
{
"name": "serve",
"version": "11.3.1",
"version": "11.3.2",
"description": "Static file serving and directory listing",

@@ -46,5 +46,5 @@ "scripts": {

"compression": "1.7.3",
"serve-handler": "6.1.2",
"serve-handler": "6.1.3",
"update-check": "1.5.2"
}
}

@@ -7,5 +7,4 @@ ![](https://assets.vercel.com/image/upload/v1527770721/repositories/serve/serve-repo-banner.png)

[![Build Status](https://circleci.com/gh/zeit/serve.svg?&style=shield)](https://circleci.com/gh/zeit/serve)
[![Build Status](https://circleci.com/gh/vercel/serve.svg?&style=shield)](https://circleci.com/gh/vercel/serve)
[![Install Size](https://packagephobia.now.sh/badge?p=serve)](https://packagephobia.now.sh/result?p=serve)
[![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/zeit)

@@ -52,7 +51,7 @@ Assuming you would like to serve a static site, single page application or just a static file (no matter if on your device or on the local network), this package is just the right choice for you.

To customize `serve`'s behavior, create a `serve.json` file in the public folder and insert any of [these properties](https://github.com/zeit/serve-handler#options).
To 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).
## API
The core of `serve` is [serve-handler](https://github.com/zeit/serve-handler), which can be used as middleware in existing HTTP servers:
The core of `serve` is [serve-handler](https://github.com/vercel/serve-handler), which can be used as middleware in existing HTTP servers:

@@ -65,3 +64,3 @@ ```js

// You pass two more arguments for config and middleware
// More details here: https://github.com/zeit/serve-handler#options
// More details here: https://github.com/vercel/serve-handler#options
return handler(request, response);

@@ -75,3 +74,3 @@ })

**NOTE:** You can also replace `http.createServer` with [micro](https://github.com/zeit/micro), if you want.
**NOTE:** You can also replace `http.createServer` with [micro](https://github.com/vercel/micro), if you want.

@@ -84,3 +83,3 @@ ## Contributing

After that, you can use the `serve` command everywhere. [Here](https://github.com/zeit/serve/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+for+beginners%22)'s a list of issues that are great for beginners.
After that, you can use the `serve` command everywhere. [Here](https://github.com/vercel/serve/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+for+beginners%22)'s a list of issues that are great for beginners.

@@ -87,0 +86,0 @@ ## Credits

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc