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
npm install @capacitor-community/keep-awake
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
126 Stars
72 Commits
16 Forks
11 Watching
7 Branches
22 Contributors
Updated on 01 Nov 2024
Minified
Minified + Gzipped
Java (32.16%)
TypeScript (26.44%)
Swift (18.92%)
Ruby (9.39%)
Objective-C (8.51%)
JavaScript (4.58%)
Cumulative downloads
Total Downloads
Last day
-14.7%
2,675
Compared to previous day
Last week
4.7%
18,060
Compared to previous week
Last month
5.1%
78,843
Compared to previous month
Last year
42.7%
627,316
Compared to previous year
1
@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 here: robingenz/capacitor-plugin-demo
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
6 existing vulnerabilities detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
Found 4/24 approved changesets -- score normalized to 1
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
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 2024-11-25
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