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

send 0.14.1

Better streaming static file server with Range and conditional-GET support
Package summary
Share
6
issues
1
critical severity
license
1
3
high severity
vulnerability
3
1
moderate severity
vulnerability
1
1
low severity
vulnerability
1
3
licenses
14
MIT
2
ISC
1
N/A
Package created
4 Jul 2012
Version published
10 Jun 2016
Maintainers
1
Total deps
17
Direct deps
13
License
MIT

Issues

6

1 critical severity issue

critical
Recommendation: Check the package code and files for license information
via: debug@2.2.0 & others
Collapse
Expand

3 high severity issues

high
Recommendation: Upgrade to version 0.5.2 or later
via: fresh@0.3.0
Recommendation: Upgrade to version 1.4.1 or later
via: mime@1.3.4
Recommendation: Upgrade to version 2.6.9 or later
via: debug@2.2.0
Collapse
Expand

1 moderate severity issue

moderate
Recommendation: Upgrade to version 2.0.0 or later
via: debug@2.2.0 & others
Collapse
Expand

1 low severity issue

low
Recommendation: Upgrade to version 2.6.9 or later
via: debug@2.2.0
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
14 Packages, Including:
debug@2.2.0
depd@1.1.2
destroy@1.0.4
ee-first@1.1.1
encodeurl@1.0.2
escape-html@1.0.3
etag@1.7.0
fresh@0.3.0
http-errors@1.5.1
mime@1.3.4
on-finished@2.3.0
range-parser@1.2.1
send@0.14.1
statuses@1.3.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
2 Packages, Including:
inherits@2.0.3
setprototypeof@1.0.2

N/A

N/A
1 Packages, Including:
ms@0.7.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

13
All Dependencies CSV
β“˜ This is a list of send 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
debug2.2.010.05 kBMIT
prod
1
1
1
1
depd1.1.28.81 kBMIT
prod
destroy1.0.42.28 kBMIT
prod
encodeurl1.0.23.18 kBMIT
prod
escape-html1.0.31.87 kBMIT
prod
etag1.7.03.89 kBMIT
prod
fresh0.3.02.41 kBMIT
prod
1
http-errors1.5.14.97 kBMIT
prod
mime1.3.411.95 kBMIT
prod
1
ms0.7.12.74 kBUNKNOWN
prod
1
1
on-finished2.3.04.45 kBMIT
prod
range-parser1.2.13.52 kBMIT
prod
statuses1.3.14.06 kBMIT
prod

Visualizations

Frequently Asked Questions

What does send do?

Send is an advanced static file server library for Node.js. It facilitates the streaming of files from the file system as an HTTP response. Key features include support for partial responses (Ranges), conditional-GET negotiation (If-Match, If-Unmodified-Since, If-None-Match, If-Modified-Since), strong test coverage, and fine-grained events. Send does not perform internal caching on its own, implying that for caching purposes, you would need to use a reverse proxy cache such as Varnish or a Content Delivery Network (CDN). Additionally, you are also given the ability to serve up entire directories and individual specific files.

How do you use send?

To use send in your Node.js project, you need to first install the package using npm with the command npm install send. Once installed, requiring the library in your javascript file can be carried out with the line var send = require('send'). The general formula for usage is send(req, path, [options]).pipe(res), with replacement of req, path, and optionally options with your desired parameters. Here's an example of using send to serve a specific file:

var http = require('http')
var send = require('send')

var server = http.createServer(function onRequest (req, res) {
  send(req, '/path/to/index.html')
    .pipe(res)
})

server.listen(3000)

In this instance, send is being used to send a specified file (/path/to/index.html) to every request that is received on the server.

Where are the send docs?

The complete documentation for Send library is available on its GitHub page at git+https://github.com/pillarjs/send.git as well as on the npm module page at https://www.npmjs.org/package/send. These locations provide all the required information on how to use, install and manipulate the send functions, as well as how to operate different features like custom error-handling, caching, debugging, event handling etc.