captcha-generator-react
Advanced tools
Comparing version
{ | ||
"name": "captcha-generator-react", | ||
"version": "1.6.5", | ||
"version": "1.6.6", | ||
"main": "index.mjs", | ||
@@ -5,0 +5,0 @@ "types": "index.d.ts", |
@@ -72,8 +72,7 @@ # Generate captcha | ||
if you want to adjust the height, width or length of the captcha, just include it as an object in the generateCaptcha() function's parameter. | ||
```js | ||
//if you want to adjust the height, width or length,just include it as an object in the generateCaptcha() function parameter. | ||
const { text, imgUrl } = generateCaptcha({ length: 4 }); // generates a captcha of 4 characters. | ||
// you can also add height and width as well. | ||
const { text, imgUrl } = generateCaptcha({ length: 7, height: 50, width: 220 }); // generates a captcha where the height is 50 pixels, width is 220 pixels and the length is 7. | ||
``` |
3803
3.96%78
-1.27%