1.0.4 • Published 4 years ago
macos-lockscreen v1.0.4
MacOS Lock Screen
Lock your screen in terminal, only supports macOS.
Install
Depends on
Node.js,npmandclang
If you don't have clang installed, run
$ xcode-select --installAnd install this package globally
$ npm install macos-lockscreen -gUsage
You can lock the screen by running the following command
$ lockscreen
or
$ lockYou 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