
Security News
Open Source Maintainers Feeling the Weight of the EU’s Cyber Resilience Act
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
react-keep-awake
Advanced tools
React component and hook to keep screen awake using Screen Wake Lock API.
npm install react-keep-awake
To keep screen awake by component:
import { KeepAwake } from 'react-keep-awake'
const MyApp = () => {
return (
<main>
<KeepAwake />
<p>Lorem ipsum</p>
</main>
)
}
To keep screen awake by hook:
import { useKeepAwake } from 'react-keep-awake'
const MyApp = () => {
useKeepAwake()
return (
<main>
<p>Lorem ipsum</p>
</main>
)
}
npm ci
npm run dev
FAQs
React component and hook to keep screen awake.
The npm package react-keep-awake receives a total of 32 weekly downloads. As such, react-keep-awake popularity was classified as not popular.
We found that react-keep-awake demonstrated a healthy version release cadence and project activity because the last version was released less than 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
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.