GithubHelp home page GithubHelp logo

thatismunn / captcha-canvas Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shashank3736/captcha-canvas

0.0 0.0 0.0 1.31 MB

A captcha generator by using node-canvas and canvas-constructor.

Home Page: https://captcha-canvas.js.org

License: Apache License 2.0

JavaScript 95.58% TypeScript 4.42%

captcha-canvas's Introduction

captcha-canvas

All Contributors

This is an npm package captcha-canvas helps you to make custom captcha of all types. The package uses canvas to create captcha imagas. See installation section to know how to install.

Install canvas before captcha-canvas installation. As canvas is the peer dependencies.

captcha-canvas

Captcha Image:

captcha FOSSA Status

Features

  • Highly customisable you can customise every single value use to make this package.
  • 95% OCR fails to read this captcha image and throw Error.
  • Use class constructor method so you can generate as many frames as many you want by using same values.
  • No bundled dependenceris. You need to install them to use the package.
  • Support of background images is also possible.
  • Captcha adapt all the external options very easily.

How to use?

Here is a quick example on how to use the module. But a well written documentation is available to understand all the mothods and customisation available for your project.

const { CaptchaGenerator } = require('captcha-canvas');  //require package here
const fs = require('fs'); //require fs module for saving image in a file
const options = {height: 200, width: 600};  //options for captcha image
const captcha = new CaptchaGenerator(options); //getting captcha constructor
captcha.text; //returns text of the captcha image.
const buffer = await captcha.generate(); //returns buffer of the captcha image

fs.writeFileSync('image.png', buffer); //will create image.png file of the captcha

You can use many methods like setCaptcha and setTrace to customize there appearance and values.

Need Help:

I am working on a simple guide for this npm package you can check it out here.

Open an issue if you need help regarding this module or want to report any bug.

Wanna support developer?

  • Star the github repo of the project. More stars motivate me to work on this project.

  • Open an issue to recommend some new features or report bug regarding this module.

  • For now, you don't have anyway to fund this project but maybe in future I update this.

Supported versions

We always recommend you to use the most latest version for more methods and better performance.

If you are at v1.x.y and I launched a new version 2.0.0 do not update it. Because it is major change which may (basically always) break your present code or the output is not as expected.

If you are at same major change version but a new patch/minor changed version is available install without any fear. Usually minor change comes with some new methods, and patch release comes with bug fixes/updated readme.

Contributors โœจ

Thanks goes to these wonderful people (emoji key):


Shashank

๐Ÿ“†

TheDeadCraftPT

๐Ÿ›

IchiiDev

๐Ÿ›

This project follows the all-contributors specification. Contributions of any kind welcome!

License

FOSSA Status

captcha-canvas's People

Contributors

allcontributors[bot] avatar code-factor avatar fossabot avatar ichiidev avatar ikr4-m avatar shashank3736 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.