🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →

captcha-generator-react

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

captcha-generator-react - npm Package Compare versions

Comparing version

to
1.6.6

{
"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.
```