Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

serve

Package Overview
Dependencies
Maintainers
4
Versions
153
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 10.1.2 to 11.0.0

8

bin/serve.js

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

-S, --symlinks Resolve symlinks instead of showing 404 errors
{bold ENDPOINTS}

@@ -345,2 +347,3 @@

'--no-compression': Boolean,
'--symlinks': Boolean,
'-h': '--help',

@@ -354,2 +357,3 @@ '-v': '--version',

'-u': '--no-compression',
'-S': '--symlinks',
// This is deprecated and only for backwards-compatibility.

@@ -403,2 +407,6 @@ '-p': '--listen'

if (args['--symlinks']) {
config.symlinks = true;
}
for (const endpoint of args['--listen']) {

@@ -405,0 +413,0 @@ startEndpoint(endpoint, config, args);

4

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

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

"compression": "1.7.3",
"serve-handler": "5.0.8",
"serve-handler": "6.0.0",
"update-check": "1.5.2"
}
}

@@ -17,4 +17,6 @@ ![](https://assets.zeit.co/image/upload/v1527770721/repositories/serve/serve-repo-banner.png)

Firstly, install the package using [Yarn](https://yarnpkg.com/en/) (you'll need at least [Node.js LTS](https://nodejs.org/en/)):
The quickest way to get started is to just run `npx serve` in your project's directory.
If you prefer, you can also install the package globally using [Yarn](https://yarnpkg.com/en/) (you'll need at least [Node.js LTS](https://nodejs.org/en/)):
```bash

@@ -21,0 +23,0 @@ yarn global add serve

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc