zkme-antibot-component
v1.0.7
Published
This package contains web components for anti-bot (liveness-detection).
Downloads
2
Readme
About
This package contains web components for anti-bot (liveness-detection).
| Devices | | | | |:---------------------|:-------------------------------------------------------------------------------------------------:|:----------------------------------------------------------------------------------------------------:|:-------------------------------------------------------------------------------------------------:| | Mobile (iOS) | 99 (iOS14.4+) | 99 (iOS14.4+) | 11 | | Mobile (Android) | 66 | 62 | - | | Desktop | 66 | 63 | 11 |
Install via NPM
On the command line, navigate to the root directory of your project:
cd /path/to/your-project
Run the following command:
npm init
Then answer the questions in the command line questionnaire.
Install zkme-antibot-component
npm install zkme-antibot-component
Import zkme-antibot-component into your index.js
import { Antibot } from 'zkme-antibot-component'
Install via CDN
Connect the script in your .html
file.
For example:
<script src="https://cdn.jsdelivr.net/npm/zkme-antibot-component@latest/dist/index.min.js"></script>
Add the name of the component to the html, as in the example below.
<!DOCTYPE html>
<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/zkme-antibot-component@latest/dist/index.min.js"></script>
<script>
//success callback
function verifySuccess() {
console.log('success callback')
}
</script>
</head>
<body>
<zkme-antibot isOpen="true" verifySuccess="verifySuccess"></zkme-antibot>
</body>
</html>