basic-captcha

1.0.4 • Public • Published

This is a simple captcha implementation.

Usage:

Initialize the captcha engine

const s = SimpleCaptchaEngine(numberOfCharacters, backGroundColor, charactersToUse, fontList)

Get image data url (which can be embedded into any image component)

imageUrl = s.getImageUrlData()
imageUrl = s.getImageUrlData(true) //Add strokes to image

Validate user input

s.validateCaptcha(string) //compare user input to captcha image

Readme

Keywords

Package Sidebar

Install

npm i basic-captcha

Weekly Downloads

17

Version

1.0.4

License

ISC

Unpacked Size

5.48 kB

Total Files

3

Last publish

Collaborators

  • pranav1344