macos-lockscreen
v1.0.4
Published
A command line tool helps MacOS lock screen
Downloads
1
Readme
MacOS Lock Screen
Lock your screen in terminal, only supports macOS.
Install
Depends on
Node.js
,npm
andclang
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