Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
vue-insomnia
Advanced tools
Prevents the display of a mobile device from going to sleep by playing a small (6kb) mp4 video that's positioned off screen on a loop.
Import into your project using npm or yarn.
yarn add vue-insomnia
or npm install --save vue-insomnia
In your main.js (or equivalent) import and then use vue-insomnia.
import vueInsomnia from "vue-insomnia";
Vue.use(vueInsomnia);
There are two methods globally available, vueInsomnia().on() and vueInsomnia().off(), to toggle screen wake lock on and off, respectively. For example, to turn on the wake lock when a component is loaded:
mounted: {
this.vueInsomnia().on();
}
or to use in a component template:
Add a method
methods: {
wakeLockOn() {
this.vueInsomnia().on();
},
wakeLockOff() {
this.vueInsomnia().off();
}
}
and then use the method:
<button @click="wakeLockOn">Wake Lock on</button>
FAQs
A vue plugin that prevents display sleep.
The npm package vue-insomnia receives a total of 12 weekly downloads. As such, vue-insomnia popularity was classified as not popular.
We found that vue-insomnia 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.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.