Skip to content

purejs-captcha - javascript code that renders captcha without any dependencies

License

Notifications You must be signed in to change notification settings

F145h/purejs-captcha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

purejs-captcha

purejs-captcha - javascript code that renders captcha without any dependencies

Compatible with Windows, Linux, FreeBSD, OSX, Android or any other platforms!

Node.js sample:

var captchaFactory = require("node-generic-captcha.js");

var captcha = captchaFactory.make({});
captcha.drawText("Hello world");
captcha.addNoise();
captcha.pngStream() // returns stream with captcha

HTML5 canvas sample:

<script type="text/javascript" src="node-generic-captcha.js"></script>

<div><canvas id="canvas6" width=1 height=1 style="border:1px solid #fff;visibility:hidden;padding-bottom: 10px;"></canvas></div>

<script type="text/javascript">
  var c6 = new nodeGenericCaptcha({usePerlinBrush: true});
  c6.drawText("Perlin noise");
  c6.addNoise();
  c6.draw("canvas6");
</script>

PS: see "/examples"

About

purejs-captcha - javascript code that renders captcha without any dependencies

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published