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 Apr 28, 2024 via pnpm

serve 14.2.1

Static file serving and directory listing
Package summary
Share
1
issue
1
high severity
license
1
7
licenses
79
MIT
6
ISC
1
Apache-2.0
4
other licenses
(WTFPL OR MIT)
1
(BSD-2-Clause OR MIT OR Apache-2.0)
1
(MIT OR CC0-1.0)
1
BSD-2-Clause
1
Package created
25 Jun 2011
Version published
21 Aug 2023
Maintainers
9
Total deps
90
Direct deps
11
License
MIT

Issues

1

1 high severity issue

high
Recommendation: Validate that the license expression complies with your license policy
via: update-check@1.5.4
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
79 Packages, Including:
@zeit/schemas@2.29.0
accepts@1.3.8
ajv@8.11.0
ansi-regex@5.0.1
ansi-regex@6.0.1
ansi-styles@4.3.0
ansi-styles@6.2.1
arch@2.2.0
arg@5.0.2
balanced-match@1.0.2
boxen@7.0.0
brace-expansion@1.1.11
bytes@3.0.0
camelcase@7.0.1
chalk-template@0.4.0
chalk@4.1.2
chalk@5.0.1
cli-boxes@3.0.0
clipboardy@3.0.0
color-convert@2.0.1
color-name@1.1.4
compressible@2.0.18
compression@1.7.4
concat-map@0.0.1
content-disposition@0.5.2
cross-spawn@7.0.3
debug@2.6.9
deep-extend@0.6.0
eastasianwidth@0.2.0
emoji-regex@8.0.0
emoji-regex@9.2.2
execa@5.1.1
fast-deep-equal@3.1.3
fast-url-parser@1.1.3
get-stream@6.0.1
has-flag@4.0.0
is-docker@2.2.1
is-fullwidth-code-point@3.0.0
is-port-reachable@4.0.0
is-stream@2.0.1
is-wsl@2.2.0
json-schema-traverse@1.0.0
merge-stream@2.0.0
mime-db@1.33.0
mime-db@1.52.0
mime-types@2.1.18
mime-types@2.1.35
mimic-fn@2.1.0
minimist@1.2.8
ms@2.0.0

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
6 Packages, Including:
ansi-align@3.0.1
ini@1.3.8
isexe@2.0.0
minimatch@3.1.2
signal-exit@3.0.7
which@2.0.2

Apache License 2.0

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
use-patent-claims
place-warranty
Cannot
hold-liable
use-trademark
Must
include-copyright
include-license
state-changes
include-notice
1 Packages, Including:
human-signals@2.1.0

(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

(MIT OR CC0-1.0)

Public Domain
1 Packages, Including:
type-fest@2.19.0

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

11
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.29.06.72 kBMIT
prod
ajv8.11.0214.11 kBMIT
prod
arg5.0.25.49 kBMIT
prod
boxen7.0.06.81 kBMIT
prod
chalk-template0.4.03.91 kBMIT
prod
chalk5.0.112.98 kBMIT
prod
clipboardy3.0.0361.44 kBMIT
prod
compression1.7.47.64 kBMIT
prod
is-port-reachable4.0.01.98 kBMIT
prod
serve-handler6.1.513.8 kBMIT
prod
update-check1.5.44.51 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.