1.0.0 • Published 5 years ago
@znetstar/lock-screen v1.0.0
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
.
1.0.0
5 years ago