Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
vue-window-size
Advanced tools
Reactivity window size for Vue.js
$ yarn add vue-window-size
Plugin all components have window sizes.
Components with mixin have window sizes. Other components don't have window sizes.
Install plugin
import Vue from 'vue';
import VueWindowSize from 'vue-window-size';
Vue.use(VueWindowSize);
Use with component
<template>
<div>
<p>window width: {{ windowWidth }}</p>
<p>window height: {{ windowHeight }}</p>
</div>
</template>
Use with component
<template>
<div>
<p>window width: {{ windowWidth }}</p>
<p>window height: {{ windowHeight }}</p>
</div>
</template>
<script>
import { vueWindowSizeMixin } from 'vue-window-size';
export default {
mixins: [vueWindowSizeMixin],
};
</script>
delay
(option)Number
50
Change delay time of resize event.
e.g.
import Vue from 'vue';
import VueWindowSize from 'vue-window-size';
Vue.use(VueWindowSize, {
delay: 100,
});
setDelay(delay: number)
Same as deplay option.
import { vueWindowSize } from 'vue-window-size';
vueWindowSize.setDelay(1000);
FAQs
Reactivity window size for Vue.js.
The npm package vue-window-size receives a total of 4,040 weekly downloads. As such, vue-window-size popularity was classified as popular.
We found that vue-window-size demonstrated a not healthy version release cadence and project activity because the last version was released 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
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.