/acrion

NodeJS human checker

Primary LanguageJavaScriptGNU Lesser General Public License v3.0LGPL-3.0

Acrion Build Status Coverage Status

A small library that tries to validate users are human, by Q&A.

Installation

npm install acrion

Usage

let qa = require('acrion');
let question = qa.question();

Generates a random question

let qa = require('acrion');
let question = qa.question();
let result = qa.answer(question, 'some answer');

Returns true when answered correctly (case insensitive), otherwise false.

Tests

npm test

Contributing

In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.