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

webpack-dev-middleware 7.0.0

A development middleware for webpack
Package summary
Share
7
issues
5
critical severity
license
5
2
high severity
vulnerability
2
6
licenses
15
MIT
5
N/A
1
Apache-2.0
3
other licenses
Unlicense
1
0BSD
1
BSD-2-Clause
1
Package created
8 Aug 2012
Version published
26 Dec 2023
Maintainers
4
Total deps
24
Direct deps
5
License
MIT

Issues

7

5 critical severity issues

critical
Recommendation: Check the package code and files for license information
via: memfs@4.9.2
Recommendation: Check the package code and files for license information
via: memfs@4.9.2
Recommendation: Check the package code and files for license information
via: memfs@4.9.2
Recommendation: Check the package code and files for license information
via: memfs@4.9.2
Recommendation: Check the package code and files for license information
via: memfs@4.9.2
Collapse
Expand

2 high severity issues

high
Recommendation: Upgrade to version 7.1.0 or later
via: webpack-dev-middleware@7.0.0
Recommendation: Upgrade to version 7.1.0 or later
via: webpack-dev-middleware@7.0.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
15 Packages, Including:
@types/json-schema@7.0.15
ajv-formats@2.1.1
ajv-keywords@5.1.0
ajv@8.13.0
colorette@2.0.20
fast-deep-equal@3.1.3
hyperdyperid@1.2.0
json-schema-traverse@1.0.0
mime-db@1.52.0
mime-types@2.1.35
punycode@2.3.1
range-parser@1.2.1
require-from-string@2.0.2
schema-utils@4.2.0
webpack-dev-middleware@7.0.0

N/A

N/A
5 Packages, Including:
@jsonjoy.com/base64@1.1.1
@jsonjoy.com/json-pack@1.0.3
@jsonjoy.com/util@1.1.2
sonic-forest@1.0.2
tree-dump@1.0.1

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:
memfs@4.9.2

The Unlicense

Public Domain
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
private-use
modify
Cannot
include-copyright
hold-liable
Must
1 Packages, Including:
thingies@1.21.0

BSD Zero Clause 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
include-copyright
include-license
include-original
Cannot
hold-liable
Must
1 Packages, Including:
tslib@2.6.2

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

5
All Dependencies CSV
β“˜ This is a list of webpack-dev-middleware 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
colorette2.0.204.94 kBMIT
prod
memfs4.9.2645.54 kBApache-2.0
prod
5
mime-types2.1.355.46 kBMIT
prod
range-parser1.2.13.52 kBMIT
prod
schema-utils4.2.015.34 kBMIT
prod

Visualizations

Frequently Asked Questions

What does webpack-dev-middleware do?

Webpack-dev-middleware is a development middleware designed to be used with webpack. It is useful in development settings due to several key features. Firstly, it handles files in memory rather than writing them to your disk. It also delays requests when files change in watch mode until the compiling process is complete. Lastly, it supports hot module reload (HMR), a valuable feature during development.

How do you use webpack-dev-middleware?

To start using webpack-dev-middleware, you need to install the module using npm, ideally as a dev dependency. The code sample below illustrates a typical usage scenario in Node.js with Express.

const webpack = require("webpack");
const middleware = require("webpack-dev-middleware");
const compiler = webpack({
  // your webpack configuration goes here
});
const express = require("express");
const app = express();

app.use(
  middleware(compiler, {
    // options for webpack-dev-middleware go here
  })
);

app.listen(3000, () => console.log("Server listening on port 3000!"));

In this example, webpack-dev-middleware is being used as an Express middleware by calling app.use(). It requires two arguments - a webpack compiler with your configuration and an options object for webpack-dev-middleware.

Where are the webpack-dev-middleware docs?

The documentation for webpack-dev-middleware can be found attached to the webpack.js.org website. The documentation provides a detailed explanation about the usage, API, options, and some FAQs about webpack-dev-middleware. Be sure to check out the documentation for more details and usage examples.