Gathering detailed insights and metrics for @capacitor-community/keep-awake
Gathering detailed insights and metrics for @capacitor-community/keep-awake
Gathering detailed insights and metrics for @capacitor-community/keep-awake
Gathering detailed insights and metrics for @capacitor-community/keep-awake
⚡️ Capacitor plugin to prevent devices from dimming or locking the screen.
npm install @capacitor-community/keep-awake
Typescript
Module System
Node Version
NPM Version
Swift (36.93%)
Java (26.93%)
TypeScript (16.98%)
Ruby (7.69%)
HTML (6.2%)
JavaScript (5.28%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
156 Stars
79 Commits
19 Forks
10 Watchers
7 Branches
24 Contributors
Updated on Jul 04, 2025
Latest Version
7.1.0
Package Id
@capacitor-community/keep-awake@7.1.0
Unpacked Size
37.01 kB
Size
8.67 kB
File Count
25
NPM Version
10.1.0
Node Version
20.9.0
Published on
Jun 20, 2025
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
@capacitor-community/keep-awake
⚡️ Capacitor plugin to prevent devices from dimming or locking the screen.
Maintainer | GitHub | Social |
---|---|---|
Kevin Boosten | kevinboosten | @kevinboosten |
Robin Genz | robingenz | @robin_genz |
1npm install @capacitor-community/keep-awake 2npx cap sync
No configuration required for this plugin.
A working example can be found in example-app folder.
1import { KeepAwake } from '@capacitor-community/keep-awake'; 2 3const keepAwake = async () => { 4 await KeepAwake.keepAwake(); 5}; 6 7const allowSleep = async () => { 8 await KeepAwake.allowSleep(); 9}; 10 11const isSupported = async () => { 12 const result = await KeepAwake.isSupported(); 13 return result.isSupported; 14}; 15 16const isKeptAwake = async () => { 17 const result = await KeepAwake.isKeptAwake(); 18 return result.isKeptAwake; 19};
1keepAwake() => Promise<void>
Prevent the device from dimming the screen.
1allowSleep() => Promise<void>
Allow the device to dim the screen.
1isSupported() => Promise<IsSupportedResult>
Whether keep awake is supported or not.
Returns: Promise<IsSupportedResult>
1isKeptAwake() => Promise<IsKeptAwakeResult>
Check if the device is kept awake.
Returns: Promise<IsKeptAwakeResult>
Prop | Type |
---|---|
isSupported | boolean |
Prop | Type |
---|---|
isKeptAwake | boolean |
See CHANGELOG.md.
See LICENSE.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
binaries present in source code
Details
Reason
2 existing vulnerabilities detected
Details
Reason
3 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 3
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
Found 5/27 approved changesets -- score normalized to 1
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
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