1.0.0 • Published 5 years ago

@znetstar/lock-screen v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

lock-screen

NPM

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.