macos-lockscreen
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

MacOS Lock Screen

Lock your screen in terminal, only supports macOS.

Install

Depends on Node.js, npm and clang

If you don't have clang installed, run

$ xcode-select --install

And install this package globally

$ npm install macos-lockscreen -g

Usage

You can lock the screen by running the following command

$ lockscreen
or
$ lock

You can also use this package in Node.js

const lockScreen = require('macos-lockscreen');

await lockScreen();

After the unlocking is completed, the lockScreen will asynchronously return the result code, 0 means the unlocking is successful

Readme

Keywords

Package Sidebar

Install

npm i macos-lockscreen

Weekly Downloads

0

Version

1.0.4

License

MIT

Unpacked Size

51.9 kB

Total Files

6

Last publish

Collaborators

  • crazyurus