node-svgcatpcha

SVG captcha generator

Usage no npm install needed!

<script type="module">
  import nodeSvgcatpcha from 'https://cdn.skypack.dev/node-svgcatpcha';
</script>

README

node-svgcaptcha

A npm module to generate a captcha with svg image

Options:

  Options that we can pass to the module with the default values:
  
  values: 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789' // String with chars to generate random captcha
    length: 8 // lenght of chars in generated captcha
    width: 200 // width of the generated image
    height: 50 // height of the generated image
    color: true // true means that letters are painted in colors and false in gray scale
    lines: 2 // number of lines in the captcha
    noise: 1 // level of noise (points) in the captcha