acrion
v0.1.6
Published
Acrion is a Human verification module, e.g. check if the user is a human.
Downloads
14
Readme
Acrion
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.