
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Prevent display sleep and enable wake lock in any Android or iOS web browser
Prevent display sleep and enable wake lock in all Android and iOS web browsers.
Check out the live demo in any Android or iOS web browser.
This library is available on Bower as nosleep.
$> bower install nosleep
This package is published to npm as nosleep.js and can be installed with:
$> npm install nosleep.js
Alternatively, you can manually add NoSleep.js to your project (or the minified version).
This repository uses webpack to build the distribution versions of the library. To build this library run webpack
.
Create a new NoSleep object and then enable or disable it when needed as follows:
var noSleep = new NoSleep();
function enableNoSleep() {
noSleep.enable();
document.removeEventListener('click', enableNoSleep, false);
}
// Enable wake lock.
// (must be wrapped in a user input event handler e.g. a mouse or touch handler)
document.addEventListener('click', enableNoSleep, false);
// ...
// Disable wake lock at some point in the future.
// (does not need to be wrapped in any user input event handler)
noSleep.disable();
MIT. Copyright (c) Rich Tibbett
FAQs
Prevent display sleep and enable wake lock in any Android or iOS web browser
The npm package nosleep.js receives a total of 54,624 weekly downloads. As such, nosleep.js popularity was classified as popular.
We found that nosleep.js 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.