@aleen42/screen-lock

1.0.1 • Public • Published

screen-lock.js

javascript

A simple implementation of the screen lock feature but is quite safe because all DOM nodes have been extracted into memory via $.fn.detach, which means that you can't restore it easily unless you can access the memory. It is easily imported to use:

const lock = require('screen-lock');
const unlock = lock();

// append a locking mask in the body
// ...

// hide mask and unlock after prompt
unlock();

How to contribute

Have an idea? Found a bug? See how to contribute.

📜 License

MIT © aleen42

Readme

Keywords

Package Sidebar

Install

npm i @aleen42/screen-lock

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

5.31 kB

Total Files

4

Last publish

Collaborators

  • aleen42