lock-system

September 17, 2021 ยท View on GitHub

Lock your system

Shows the login screen the next time you use the computer.

Supports macOS, Linux, and Windows.

Install

npm install lock-system

Usage

import lockSystem from 'lock-system';

lockSystem();

API

lockSystem()

Locks the system.

Throws an error if executing the lock command fails or if the OS is not supported.