@znetstar/lock-screen
v1.0.0
Published
A cross-platform library which locks the screen
Downloads
4
Readme
lock-screen
Lock screen will lock the current session.
Currently supports MacOS and Windows. Linux support coming soon.
Uses ffi-napi to make the system calls needed to lock the screen. Has no external dependencies.
Usage
const { lockScreen } = require('lock-screen');
lockScreen();
Documentation
Documentation is available in the docs/
folder or online here.
To generate docs run npm run docs
.