lock-system
TypeScript icon, indicating that this package has built-in type declarations

3.0.1 • Public • Published

lock-system

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.

Related

/lock-system/

    Package Sidebar

    Install

    npm i lock-system

    Weekly Downloads

    79

    Version

    3.0.1

    License

    MIT

    Unpacked Size

    13 kB

    Total Files

    6

    Last publish

    Collaborators

    • sindresorhus