
Research
/Security News
DuckDB npm Account Compromised in Continuing Supply Chain Attack
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
express-browser-reload
Advanced tools
✨ Node.js module to refresh your browser when your Express server restarts.
Node.js module to refresh your browser when your Express server restarts. Works by using a WebSocket to the server and waits for the WebSocket to close to detect the server restarting. Once the server comes back up, the page will be reloaded.
This project is a hard fork of reload, which is a more generalized tool with more features beyond the Express world. This fork is maintained by the Roosevelt web framework team, but it can be used independently of Roosevelt as well.
const express = require('express')
const app = express()
app.get('/', function (req, res) {
res.type('text/html')
res.send(`<!doctype html>
<html>
<head>
<title>express-browser-reload express sample</title>
</head>
<body>
<p>express-browser-reload express sample</p>
<!-- all you have to do is include the reload script and have it be on every page of your project -->
<!-- you do not create this route, reload creates it for you automatically -->
<script src="/express-browser-reload.js"></script>
</body>
</html>`)
})
const server = app.listen(3000, () => console.log(`🎧 express-browser-reload express sample app server is running on http://localhost:3000`))
const params = {
route: '/express-browser-reload.js',
skipDeletingConnections: false
}
require('express-browser-reload')(app, server, params)
Params API:
route
: What Express route to put the client-side JS file on. Default: /express-browser-reload.js
.skipDeletingConnections
: Whether to skip purging HTTP connections on the Express server when it restarts. If you're already handling this on your Express server yourself, set this param to true
to prevent errors.4.0.0
reload
to express-browser-reload
which focuses exclusively on the Express use case, as opposed to reload
which is a more generalized tool with more features beyond the Express world.route
.skipDeletingConnections
which will skip purging HTTP connections on the Express server when it restarts. If you're already handling this on your Express server yourself, set this param to true
to prevent errors.Previous updates before the hard fork of reload
to express-browser-reload
are below. The original project can be found at https://github.com/alallier/reload
Reload command line quality of life enhancements
.html
files when only /
is present in the browser. See: https://github.com/alallier/reload/pull/326A bunch of dependency updates and some project maintenance
Happy New Year!
Drop 12.x and add 18.x on CI - See: https://github.com/alallier/reload/pull/328
Update CI actions/checkout to v3 - See: https://github.com/alallier/reload/pull/318
Update CI actions/setup-node to v3 - See: https://github.com/alallier/reload/pull/319
Dependency Updates
passphrase
option from https.p12.passphrase
to https.passphrase
so it can be used for certAndKey configurations as well - See: https://github.com/alallier/reload/pull/251.npmignore
. See: https://github.com/alallier/reload/pull/209FAQs
✨ Node.js module to refresh your browser when your Express server restarts.
The npm package express-browser-reload receives a total of 154 weekly downloads. As such, express-browser-reload popularity was classified as not popular.
We found that express-browser-reload demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.