lock-system

Lock your system

Usage no npm install needed!

<script type="module">
  import lockSystem from 'https://cdn.skypack.dev/lock-system';
</script>

README

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