serve-static
npmv2.2.1Serve static files
Overview
serve-static is an npm package that serve static files. It is extremely widely used, with about 112.7M downloads per week and 1 known dependents in the graph. The latest version is 2.2.1, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need serve static files and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (112.7M weekly downloads).
- Clear open-source license (MIT).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of serve-static.
Dependencies
Dev (10)
Used by
Popular packages that depend on serve-static.
Frequently installed together
Lightweight debugging utility for Node.js and the browser
The ultimate javascript content-type utility.
HTTP server cookie parsing and serialization
A querystring parser that supports nesting and arrays, with a depth limit
HTTP status utility
Create HTTP error objects
Create and parse HTTP Content-Type header
An AST-based pattern checker for JavaScript.
Run a function exactly one time
Deprecate all the things
Encode a URL to a percent-encoded form, excluding already-encoded sequences
Node.js final http responder
Version history
| Version | Published | License |
|---|---|---|
| 2.2.1latest | 7 months ago | MIT |
| 1.16.3 | 7 months ago | MIT |
| 2.2.0 | 1 year ago | MIT |
| 1.16.2 | 1 year ago | MIT |
| 1.16.1 | 1 year ago | MIT |
| 2.1.0 | 1 year ago | MIT |
| 1.16.0 | 1 year ago | MIT |
| 2.0.0 | 1 year ago | MIT |
| 2.0.0-beta.2 | 2 years ago | MIT |
| 1.15.0 | 4 years ago | MIT |
| 2.0.0-beta.1 | 4 years ago | MIT |
| 1.14.2 | 4 years ago | MIT |
| 1.14.1 | 7 years ago | MIT |
| 1.14.0 | 7 years ago | MIT |
| 1.13.2 | 8 years ago | MIT |
| 1.13.1 | 8 years ago | MIT |
| 1.13.0 | 8 years ago | MIT |
| 1.12.6 | 8 years ago | MIT |
| 1.12.5 | 8 years ago | MIT |
| 1.12.4 | 9 years ago | MIT |
Maintainers
Funding
Frequently asked questions
How do I install serve-static?
Run `npm install serve-static` to add serve-static to your npm project.
What license is serve-static released under?
serve-static is distributed under the MIT license.
How popular is serve-static?
serve-static has approximately 112,716,041 downloads per week and 1 known dependent packages.