Home

Awesome

Build Status Coverage Status Codacy Code Climate

visualCaptcha-npm

Node.js NPM package for visualCaptcha's backend service

Installation with NPM

You need Node.js installed with npm.

npm install visualcaptcha

Run tests

Run next command to start mocha unit tests:

npm test

Usage

Initialization

On initialization visualCaptcha function requires req.session session object as first argument:

visualCaptcha = require( 'visualcaptcha' )( req.session, defaultImages, defaultAudios );

Where:

visualCaptcha properties

visualCaptcha methods

response object

The response object used in .streamAudio(), and .streamImage() was thought of for Express' response object, so it needs:

License

View the LICENSE file.