Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@elderjs/browser-reload
Advanced tools
This plugin has moved to @elderjs/plugin-browser-reload
See all of the latest plugins here at: Elder.js plugins
Designed to work with the Elder.js Template and integrate browser reloading.
It works by adding a websocket on bootstrap. It then sets up a listener to that websocket on the client.
When the server is restarted due to a code change, the browser will restart as well.
npm install --save @elderjs/plugin-browser-reload
Once installed, open your elder.config.js
and configure the plugin by adding @elderjs/plugin-browser-reload
to your plugin object.
plugins: {
'@elderjs/plugin-browser-reload': {} // activates the plugin
}
Below are the default settings of the plugin. You can adjust them to your needs.
plugins: {
'@elderjs/plugin-browser-reload': {
port: 8080, // the port the websocket server should run on.
delay: 200, // the delay in ms the browser should wait after the server disappears.
preventReloadQS: 'noreload', // if 'noreload' is in the query string it won't reload that page. Good for CSS editing in the browser.
retryCount: 50, // number of tries the browser will check to see if the server is up before giving up.
},
}
FAQs
Reload your browser when your Elder.js server restarts.
The npm package @elderjs/browser-reload receives a total of 2 weekly downloads. As such, @elderjs/browser-reload popularity was classified as not popular.
We found that @elderjs/browser-reload demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.