Popularity
0.7
Declining
Activity
0.0
Stable
8
2
1
Monthly Downloads: 0
Programming language: JavaScript
Tags:
UI Components
Miscellaneous
captcha-image alternatives and similar libraries
Based on the "Miscellaneous" category.
Alternatively, view captcha-image alternatives based on common mentions on social networks and blogs.
-
react-facebook
Facebook components like a Login button, Like, Share, Chat, Comments, Page or Embedded Post -
react-avatar
Universal avatar makes it possible to fetch/generate an avatar based on the information you have about that user. -
react-file-reader-input
React file input component for complete control over styling and abstraction from file reading. -
react-swipe-to-delete-ios
A simple React component to reproduce the way iOS deletes an item in a list -
react-headings
⚛ Auto-increment your HTML headings (h1, h2, etc.) for improved accessibility and SEO. -
react-advanced-news-ticker
A powerful, flexible, lightweight and animated vertical news ticker component for React. -
@restpace/schema-form
A React component package for generating forms based on (almost) the full power of JSON Schema
SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
Promo
surveyjs.io
Do you think we are missing an alternative of captcha-image or a related project?
README
Captcha Image Generator
A simple captcha image generator.
Install
npm install captcha-image
yarn add captcha-image
Example
Play with sandbox example here: Demo
Options
You can pass following parameters to Captcha instance in order to generate custom Captcha image
Attributes | Values |
---|---|
font / String | '35px Arial' |
align / String | 'center' |
baseline / String | 'middle |
width / Number | 300 |
height / Number | 150 |
bgColor / String | #eee |
color / String | #222 |
length / Number / Length of text | 7 |
Events
- createImage() method return HTML element parsed as String
Output
Final outcome looks like this:
<img src="..." data-key="..." />
Demo Usage
React
import Captcha from 'captcha-image';
const captchaImage = new Captcha(
'35px Arial',
'center',
'middle',
300,
150,
'#eee',
'#111',
6
).createImage();
function createMarkup(source) {
return { __html: source };
}
function MyCaptcha() {
return <div dangerouslySetInnerHTML={createMarkup(captchaImage)} />;
}
function App() {
return (
<div className='App'>
<MyCaptcha />
</div>
);
}
export default App;