i-am-not-a-robot

cause I can play games

Features | Installation | Usage | Demo | License

NPM version Badge size No deps JavaScript Style Guide

Features

Why not reCAPTCHA? Cause then you should deal with its Terms of Service and Privacy Policy: this is the main feature.

I would like to achieve the following features:

Installation

With npm do

npm install i-am-not-a-robot

or use a CDN

<script src="https://unpkg.com/i-am-not-a-robot/dist/i-am-not-a-robot.min.js"></script>

Usage

Suppose you have a div like this

<div id="antispam"></div>

Then you can mount ticTacToe game with the following code. The callback will be triggered when on game end, regardeless of whether or not user win or loses.

const game = require('i-am-not-a-robot').ticTacToe

const callback = () => {
  // Usually you may want to enable a submit button here.
  alert('You are not a robot')
}

game(document.getElementById('antispam'), callback)

Demo

See online demo or launch demo locally

npm install
npm run start

License

MIT