Gathering detailed insights and metrics for vue-element-resize-detector
Gathering detailed insights and metrics for vue-element-resize-detector
Gathering detailed insights and metrics for vue-element-resize-detector
Gathering detailed insights and metrics for vue-element-resize-detector
npm install vue-element-resize-detector
Typescript
Module System
Node Version
NPM Version
JavaScript (50.1%)
Vue (36.43%)
HTML (13.47%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
17 Stars
38 Commits
3 Forks
1 Watchers
29 Branches
1 Contributors
Updated on Jan 05, 2023
Latest Version
1.0.6
Package Id
vue-element-resize-detector@1.0.6
Unpacked Size
440.35 kB
Size
98.64 kB
File Count
10
NPM Version
6.13.4
Node Version
12.15.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Vue Directive to detect resize events on elements or components. Uses element Resize Detector under the hood
1$ npm install vue-element-resize-detector
In main.js
1import resize from "vue-element-resize-detector"; 2 3Vue.use(resize)
1<template> 2 <div id="app"> 3 <h1>Vue Element Resize Detector</h1> 4 <div v-resize @resize="onResize">This divs with is: {{ width }}</div> 5 </div> 6</template> 7 8<script> 9export default { 10 name: "app", 11 data() { 12 return { 13 width: 0 14 }; 15 }, 16 methods: { 17 onResize(e) { 18 console.log("resize event", e.detail.width, e.detail.height); 19 this.width = e.detail.width; 20 } 21 } 22}; 23</script> 24 25<style> 26#app { 27 font-family: "Avenir", Helvetica, Arial, sans-serif; 28 -webkit-font-smoothing: antialiased; 29 -moz-osx-font-smoothing: grayscale; 30 text-align: center; 31 color: #2c3e50; 32 margin-top: 60px; 33} 34</style> 35
Please give a ⭐️ if this project helped you!
If you have any questions or requests or want to contribute to vue-element-resize-detector
or other packages, please write the issue or give me a Pull Request freely.
If you find a bug, please report to us opening a new Issue on GitHub.
npm run serve
Runs the app in the development mode.
Open http://localhost:8080 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/14 approved changesets -- score normalized to 0
Reason
project is archived
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
123 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
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