Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
@elderjs/plugin-browser-reload
Advanced tools
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/plugin-browser-reload receives a total of 55 weekly downloads. As such, @elderjs/plugin-browser-reload popularity was classified as not popular.
We found that @elderjs/plugin-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.
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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.