trekjs / captcha Goto Github PK
View Code? Open in Web Editor NEWA Lightweight Pure JavaScript Captcha for Node.js. No C/C++, No ImageMagick, No Canvas.
License: MIT License
A Lightweight Pure JavaScript Captcha for Node.js. No C/C++, No ImageMagick, No Canvas.
License: MIT License
I would like to know if there is any possibility to include numbers 0-9 along with the letters a-z?
I see that the fonts are limited but I can't find any way to add new font.
注意到源码中有一句 const LETTERS = 'abcdafahijklmnopqrstuvwxyz'
请问是不是只能生成这些字符组成的验证码?如果要生成数字什么的,需要怎样修改?
Is it possible to set own character set? Thanks
It should be nice to add an option to return the captcha image encoded with base64
so they can be easily embedded on a webpage, for example:
<img alt="Embedded Image" src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAADIA..." />
Every captcha that is generated is 5 characters long.
If I want to generate an 8-length captcha using the code below:
const { token, buffer } = captcha(8)
A 5-length captcha is generated instead.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.