
Security News
rv Is a New Rust-Powered Ruby Version Manager Inspired by Python's uv
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
node-svgcaptcha
Advanced tools
A npm module to generate a captcha with svg image
Install npm package:
npm install node-svgcaptcha
In your code:
app.get('/captcha', function(req, res){
var captcha = require('node-svgcaptcha');
var options = {};//Set your configuration in this object
var genCaptcha = captcha(options);
if(req.session){//save value in session
req.session.captcha = genCaptcha.captchaValue;
}
//return svg to render in the browser
res.set('Content-Type', 'image/svg+xml');
res.send(genCaptcha.svg);
});
Options that we can pass to the module with the default values:
values: 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789' // String with chars to generate random captcha
length: 8 // lenght of chars in generated captcha
width: 200 // width of the generated image
height: 50 // height of the generated image
color: true // true means that letters are painted in colors and false in gray scale
lines: 2 // number of lines in the captcha
noise: 1 // level of noise (points) in the captcha
FAQs
SVG captcha generator
We found that node-svgcaptcha 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
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.