Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Feb 11, 2024 via pnpm

serve 10.0.0

Static file serving and directory listing
Package summary
Share
9
issues
6
high severity
vulnerability
5
license
1
3
moderate severity
vulnerability
3
5
licenses
57
MIT
9
ISC
1
(WTFPL OR MIT)
2
other licenses
(BSD-2-Clause OR MIT OR Apache-2.0)
1
BSD-2-Clause
1
Package created
25 Jun 2011
Version published
21 Aug 2018
Maintainers
9
Total deps
69
Direct deps
8
License
MIT

Issues

9

6 high severity issues

high
Recommendation: Upgrade to version 10.0.2 or later
via: serve@10.0.0
Recommendation: Upgrade to version 10.1.2 or later
via: serve@10.0.0
Recommendation: Upgrade to version 10.0.2 or later
via: serve@10.0.0
Recommendation: Upgrade to version 10.1.2 or later
via: serve@10.0.0
Recommendation: Upgrade to version 3.0.5 or later
via: serve-handler@5.0.0
Recommendation: Validate that the license expression complies with your license policy
via: update-check@1.5.2
Collapse
Expand

3 moderate severity issues

moderate
Recommendation: Upgrade to version 10.0.2 or later
via: serve@10.0.0
Recommendation: Upgrade to version 10.0.2 or later
via: serve@10.0.0
Recommendation: Upgrade to version 6.12.3 or later
via: ajv@6.5.3
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
57 Packages, Including:
@zeit/schemas@2.1.1
ajv@6.5.3
ansi-regex@3.0.1
ansi-styles@3.2.1
arch@2.2.0
arg@2.0.0
balanced-match@1.0.2
boxen@1.3.0
brace-expansion@1.1.11
bytes@3.0.0
camelcase@4.1.0
chalk@2.4.1
cli-boxes@1.0.0
clipboardy@1.2.3
color-convert@1.9.3
color-name@1.1.3
concat-map@0.0.1
content-disposition@0.5.2
cross-spawn@5.1.0
deep-extend@0.6.0
escape-string-regexp@1.0.5
execa@0.7.0
execa@0.8.0
fast-deep-equal@2.0.1
fast-json-stable-stringify@2.1.0
fast-url-parser@1.1.3
get-stream@3.0.0
glob-slash@1.0.0
has-flag@3.0.0
is-fullwidth-code-point@2.0.0
is-stream@1.1.0
json-schema-traverse@0.4.1
mime-db@1.33.0
mime-types@2.1.18
minimist@1.2.8
npm-run-path@2.0.2
p-finally@1.0.0
path-key@2.0.1
path-to-regexp@2.2.1
punycode@1.4.1
punycode@2.3.1
range-parser@1.2.0
registry-auth-token@3.3.2
registry-url@3.1.0
safe-buffer@5.2.1
serve-handler@5.0.0
serve@10.0.0
shebang-command@1.2.0
shebang-regex@1.0.0
string-width@2.1.1

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
9 Packages, Including:
ansi-align@2.0.0
ini@1.3.8
isexe@2.0.0
lru-cache@4.1.5
minimatch@3.0.4
pseudomap@1.0.2
signal-exit@3.0.7
which@1.3.1
yallist@2.1.2

(WTFPL OR MIT)

Permissive
1 Packages, Including:
path-is-inside@1.0.2

(BSD-2-Clause OR MIT OR Apache-2.0)

Expression
1 Packages, Including:
rc@1.2.8

BSD 2-Clause "Simplified" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
uri-js@4.4.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

8
All Dependencies CSV
β“˜ This is a list of serve 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
@zeit/schemas2.1.120.2 kBMIT
prod
ajv6.5.3188.75 kBMIT
prod
1
arg2.0.036.92 kBMIT
prod
boxen1.3.03.32 kBMIT
prod
chalk2.4.19.69 kBMIT
prod
clipboardy1.2.3364.77 kBMIT
prod
serve-handler5.0.013.17 kBMIT
prod
1
update-check1.5.24.26 kBMIT
prod
1

Visualizations

Frequently Asked Questions

What does serve do?

Serve is a handy npm package designed to assist in serving static files, single page applications, or any static file whether on your device or on a local network. Its usability extends to providing a neat interface for listing directory contents. Serve is ideal for both personal device usage and for trying out your projects in a local network environment. However, for production stages, deploying your site using platforms like Vercel is recommended.

How do you use serve?

Using serve is straightforward and uncomplicated. For first time users, you can quickly get a feel of it by running npx serve in your project's directory. For those who favor global packages, serve can also be installed globally using the command npm install --global serve. After installation, serve can be executed within a project's directory by simply running the command serve.

Here's a simple example:

> npm install --global serve
> serve

You can also specify the folder you want to serve by including the folder name in the command. Like so:

> serve folder-name/

To explore more about the different options available in serve, just run serve --help.

Where are the serve docs?

For serve's documentation, you can consult the serve-handler page on Github at https://github.com/vercel/serve-handler#options to customize serve's behavior. You can create a serve.json file and insert any of the properties listed on the page.

In terms of API usage, serve-handler can be incorporated as middleware in pre-existing HTTP servers. For instance:

const handler = require('serve-handler');
const http = require('http');

const server = http.createServer((request, response) => {
  // You pass two more arguments for config and middleware
  // More details here: https://github.com/vercel/serve-handler#options
  return handler(request, response);
});

server.listen(3000, () => {
  console.log('Running at http://localhost:3000');
});

In-depth information about serve's features, command syntax, and more can be found with the aforementioned resources.