Security News
New Proposed CISA Mandate Would Require Critical Infrastructure to Report Ransom Payments Within 24 Hours
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
react-client-captcha
Advanced tools
[![npm version](https://img.shields.io/npm/v/react-client-captcha.svg)](https://www.npmjs.com/package/react-client-captcha) ![Codecov](https://img.shields.io/codecov/c/github/majid-amiri/react-client-captcha?token=fa410599316a4368b4ecdb828baf6cbb) [![Buil
Weekly downloads
Readme
A light JS-based captcha generator.
npm install react-client-captcha --save
or
yarn add react-client-captcha
import React from "react";
import ReactDOM from "react-dom";
import ClientCaptcha from "react-client-captcha";
export default class App extends React.Component {
render() {
return <ClientCaptcha captchaCode={code => console.log(code)} />;
}
}
ReactDOM.render(<App />, document.getElementById("app"));
Name | Description | Type | Default |
---|---|---|---|
width | width of captcha image. | number | 100 |
height | height of captcha image. | number | 40 |
fontSize | fontSize of captcha characters. | number | 22 |
fontFamily | fontFamily of captcha characters. | string | "Arial, Tahoma" |
fontColor | fontColor of captcha characters. | string | "#000" |
chars | characters that captcha should be made with. | string | "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" |
charsCount | count of characters that captcha should be made with. | number | 4 |
captchaCode | function that returns current shown captcha code. | func | |
backgroundColor | backgroundColor of captcha image. | string | "#F2F2F2" |
retry | whether captcha has retry functionality | bool | true |
retryIcon | the icon of retry button | string | "https://cdn.jsdelivr.net/npm/react-client-captcha/dist/retry.svg" |
retryIconSize | size of retry button icon | number | 24 |
retryButtonClassName | className of retry button | string | cssClasses.retryButton |
retryImgClassName | className of retry img | string | "" |
containerClassName | className of captcha and retry button container div | string | cssClasses.captchaContainer |
captchaClassName | className of captcha image | string | "" |
Clone the project and run yarn test
MIT © Majid Amiri
FAQs
[![npm version](https://img.shields.io/npm/v/react-client-captcha.svg)](https://www.npmjs.com/package/react-client-captcha) ![Codecov](https://img.shields.io/codecov/c/github/majid-amiri/react-client-captcha?token=fa410599316a4368b4ecdb828baf6cbb) [![Buil
The npm package react-client-captcha receives a total of 540 weekly downloads. As such, react-client-captcha popularity was classified as not popular.
We found that react-client-captcha demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
Security News
Redis is no longer OSS, breaking its explicit commitment to remain under the BSD 3-Clause License forever. This has angered contributors who are now working to fork the software.
Product
Socket AI now enables 'AI detected potential malware' alerts by default, ensuring users benefit from AI-powered state-of-the-art malware detection without needing to opt-in.