tauri-plugin-nosleep
Tauri plugin to block the power save functionality in the OS
Add the NPM package.
npm install tauri-plugin-nosleep-api
# or
yarn add tauri-plugin-nosleep-api
Use this within TS/JS.
import from 'tauri-plugin-nosleep-api'
;
// To unblock whenever you are done
;