is-low-power-mode JavaScript Library Example

Download Back To CSSScript.Com

Easily determine if a macOS system is in low power mode using the is-low-power-mode JavaScript library. Optimize your app's performance and battery life.

Usages

await isLowPowerMode(): Promise<boolean>
// OR
await isLowPowerModeSync(): boolean