captcha-at-ease

1.0.8 • Public • Published

Easy to use modern captcha

An Easy to use captcha for your website. Modern solution for bot problem. There are many people to use captcha for bot problem. I found out it somewhere and taken inspiration from it.

Installation

To use this captcha run

  npm i captcha-at-ease

How to use

After installation, go to file where you want to deploy it

  const { useCaptcha } = require('captcha-at-ease');

  const { html, css, js } = useCaptcha();

Sample index.js File

First install dependencies

  npm i express
  npm i captcha-at-ease

Install dependencies

  // index.js
const express = require('express');
const path = require('path');
const { useCaptcha } = require('captcha-at-ease');

const app = express();
const { html, css, js } = useCaptcha();

app.get('/', (req, res) => {
    res.sendFile(html);
});

app.get('/style.css', (req, res) => {
    res.sendFile(css);
});

app.get('/script.js', (req, res) => {
    res.sendFile(js);
});

const port = process.env.PORT || 3000;
app.listen(port, () => {
    console.log(`Server is running at http://localhost:${port}`);
});

Start the server

  node filename.js

Authors

Demo

see here

Dependents (0)

Package Sidebar

Install

npm i captcha-at-ease

Weekly Downloads

1

Version

1.0.8

License

ISC

Unpacked Size

8.19 kB

Total Files

6

Last publish

Collaborators

  • ayush2202ksr