npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

lock-system

3.0.1

@sindresorhus

npmHomeRepoSnykSocket
Downloads:365
$ npm install lock-system
DailyWeeklyMonthlyYearly

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-cli - CLI for this module
  • alfred-lock - Alfred workflow