Installations
npm install rollup-plugin-livereload
Score
52.2
Supply Chain
99.5
Quality
75.5
Maintenance
100
Vulnerability
100
License
Developer
thgh
Developer Guide
Module System
CommonJS
Min. Node Version
>=8.3
Typescript Support
Yes
Node Version
12.18.0
NPM Version
6.14.6
Statistics
161 Stars
122 Commits
45 Forks
4 Watching
5 Branches
19 Contributors
Updated on 20 Sept 2024
Bundle Size
91.86 kB
Minified
31.58 kB
Minified + Gzipped
Languages
TypeScript (89.17%)
JavaScript (9.32%)
HTML (1.51%)
Total Downloads
Cumulative downloads
Total Downloads
12,937,647
Last day
4.4%
14,819
Compared to previous day
Last week
17.8%
86,628
Compared to previous week
Last month
26.8%
309,579
Compared to previous month
Last year
0.1%
3,092,358
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
1
Dev Dependencies
4
Rollup plugin LiveReload
Installation
npm install --save-dev rollup-plugin-livereload
Usage
1// rollup.config.js 2import livereload from 'rollup-plugin-livereload' 3 4export default { 5 input: 'entry.js', 6 output: { file: 'bundle.js' }, 7 plugins: [livereload()], 8}
To make it a real dev-server, combine this plugin with rollup-plugin-serve.
1// rollup.config.js 2import serve from 'rollup-plugin-serve' 3import livereload from 'rollup-plugin-livereload' 4 5export default { 6 input: 'entry.js', 7 output: { file: 'bundle.js' }, 8 plugins: [ 9 serve(), // index.html should be in root of project 10 livereload(), 11 ], 12}
Options
By default, it watches the current directory. If you also have css output, pass the folder to which the build files are written.
This plugin supports the following options:
clientUrl
: provide an alternative URL to thelivereload.js
script/resource. This URL is always preferred over all other generated URLs.clientHostname
: alternative hostname used instead oflocalhost
or the site's current host, where the bundle is fetched from. Use this option when you include your bundle from a different host.
All remaining options are passed to livereload.createServer()
.
Example:
livereload('dist')
// --- OR ---
livereload({
watch: 'dist',
verbose: false, // Disable console output
// other livereload options
port: 12345,
delay: 300,
https: {
key: fs.readFileSync('keys/agent2-key.pem'),
cert: fs.readFileSync('keys/agent2-cert.pem')
}
})
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Contributions and feedback are very welcome.
To get it running:
- Clone the project.
npm install
npm run build
Credits
License
The MIT License (MIT). Please see License File for more information.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE.md:0
- Info: FSF or OSI recognized license: MIT License: LICENSE.md:0
Reason
Found 5/10 approved changesets -- score normalized to 5
Reason
9 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm
- Warn: Project is vulnerable to: GHSA-c24v-8rfc-w8vw
- Warn: Project is vulnerable to: GHSA-8jhw-289h-jh2g
- Warn: Project is vulnerable to: GHSA-64vr-g452-qvp3
- Warn: Project is vulnerable to: GHSA-9cwx-2883-4wfx
- Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yml:8: update your workflow using https://app.stepsecurity.io/secureworkflow/thgh/rollup-plugin-livereload/pr.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/thgh/rollup-plugin-livereload/pr.yml/main?enable=pin
- Info: 0 out of 2 GitHub-owned GitHubAction dependencies pinned
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/pr.yml:1
- Info: no jobLevel write permissions found
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 25 are checked with a SAST tool
Score
3.4
/10
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More