
Research
/Security News
Contagious Interview Campaign Escalates With 67 Malicious npm Packages and New Malware Loader
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
multi-user-dev-server
Advanced tools
Create a webpack dev server that supports multiple users (or configs) on one port.
This creates a web service that runs webpack --watch
for multiple users/configs. It can be controlled by a simple web API.
Try example/app.js
with
npm install
npm start
curl --data '' http://localhost:8080/bundle/user1
curl --data '' http://localhost:8080/bundle/user2
curl --data '' http://localhost:8080/reload/user1
curl --data '' http://localhost:8080/reload/user2
const multiUserDevServer = require('multi-user-dev-server');
const app = multiUserDevServer(username => {
return {
// The path to this user's webpack config
configPath: `${__dirname}/${username}/webpack.config.js`,
// The `env` to pass into the webpack config
webpackEnv: {},
// What to respond with for `GET /:username` (optional)
successResponse: `Bundle completed in ${__dirname}/${username}`,
};
}, 3600 /* seconds after which unaccessed webpack instances will be stopped */);
app.listen(8080);
Start building username
's webpack bundle and wait until it completes. If it's already building, this will wait to respond until building is complete.
POST /bundle/:username
Reload username
's webpack config.
POST /reload/:username
FAQs
Create a webpack dev server that supports multiple users (or configs) on one port.
The npm package multi-user-dev-server receives a total of 4 weekly downloads. As such, multi-user-dev-server popularity was classified as not popular.
We found that multi-user-dev-server demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 13 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.