@znetstar/lock-screen
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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.

Dependencies (2)

Dev Dependencies (8)

Package Sidebar

Install

npm i @znetstar/lock-screen

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

368 kB

Total Files

26

Last publish

Collaborators

  • znetstar